Skip to main content
PUT
/
file-entries
/
{entryId}
/
change-permissions
curl -X PUT https://app.drime.cloud/api/v1/file-entries/123456/change-permissions \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": 12345,
    "permissions": ["view"]
  }'
{
  "status": "success",
  "users": [
    {
      "id": 12345,
      "email": "colleague@example.com",
      "display_name": "John Doe"
    }
  ]
}

Overview

Changes the permissions a user has for a shared file or folder.

Path Parameters

entryId
integer
required
ID of the shared file or folder

Request Body

userId
integer
required
ID of the user whose permissions to change
permissions
array
required
New permissions to assign
  • view - Can view the file/folder
  • edit - Can modify the file/folder
  • download - Can download the file

Response

users
array
Updated list of users with access
status
string
Request status (success)
curl -X PUT https://app.drime.cloud/api/v1/file-entries/123456/change-permissions \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": 12345,
    "permissions": ["view"]
  }'
{
  "status": "success",
  "users": [
    {
      "id": 12345,
      "email": "colleague@example.com",
      "display_name": "John Doe"
    }
  ]
}