Update folder permissions Run in API Explorer
Ask AI
POST
/api/v1/folder/{folder_uuid}/permissions
curl \
--request POST 'https://api.plannrcrm.com/api/v1/folder/6ff8f7f6-1eb3-3525-be4a-3932c805afed/permissions' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"clients_read":false,"clients_write":false,"participants":[{"uuid":"a3425b4d-269c-4489-99ae-4f35b9b7dacd","write":false},{"uuid":"deb23270-9db8-4662-b463-f5d5be81c366","write":true}]}'
Request examples
{
"clients_read": false,
"clients_write": false,
"participants": [
{
"uuid": "a3425b4d-269c-4489-99ae-4f35b9b7dacd",
"write": false
},
{
"uuid": "deb23270-9db8-4662-b463-f5d5be81c366",
"write": true
}
]
}
Response examples (401)
{
"message": "Unauthenticated."
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}