Error 500 when sharing a folder to a group via API

Hello, when i try to share a folder to a group, i have an error 500 “Internal server error”.
The API documentation is not clear how to share a folder.

After login to my instance, i call https://cloud.passbolt.com/[myOrg]/share/folder/[uuid folder].json with this json : {“permissions”:{“type”:1,“aro”:“Group”,“aro_foreign_key”:“UUID group”,“is_new”:true}}

Instance is hosted by Passbolt on their cloud.

Anyone have an idea ?

Hello, you can contact support@passbolt.com and we’ll try to help you out from there since it’s the cloud.

1 Like

Hi @NicolasPHP ,

The payload should be:

{"permissions":[{"aro":"Group","aro_foreign_key":"778fe87b-dc18-3603-ad7f-af773b5aa879","type":1,"is_new":true}]}

Does this work for you?

More on sharing using the API here.

And indeed the 500 is not the right response code from the API. We will work on a fix for that. Thank you for the hint!

Best,
Juan

2 Likes

Yeah thank you, it works :grinning_face:
I missed the array :sweat_smile: