Update folder permissions

POST /api/v1/folder/{folder_uuid}/permissions

Headers

Path parameters

application/json

Body Required

  • clients_read boolean Required

    Give read access to all clients that can view the documentable item.

  • clients_write boolean Required

    Give write access to all clients that can view the documentable item.

  • participants array[string]

    Give read and write access to specific people that can view the documentable item.

POST /api/v1/folder/{folder_uuid}/permissions
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/folder/folder_uuid/permissions' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json" \
 --data '{"clients_read":false,"clients_write":false,"participants":[{"uuid":"657afd09-fb1d-432d-9c13-ab70fa4d6a5c","write":false},{"uuid":"ed0e4320-8c23-4e98-b79b-652c59d5a87d","write":true}]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "clients_read": false,
  "clients_write": false,
  "participants": [
    {
      "uuid": "657afd09-fb1d-432d-9c13-ab70fa4d6a5c",
      "write": false
    },
    {
      "uuid": "ed0e4320-8c23-4e98-b79b-652c59d5a87d",
      "write": true
    }
  ]
}