Skip to main content
DELETE
/
file-entries
/
{entryId}
/
unshare
curl -X DELETE https://app.drime.cloud/api/v1/file-entries/123456/unshare \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": 12345
  }'
{
  "status": "success",
  "users": []
}

Overview

Removes a user’s access to 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 to remove access from

Response

users
array
Updated list of users who still have access
status
string
Request status (success)
curl -X DELETE https://app.drime.cloud/api/v1/file-entries/123456/unshare \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": 12345
  }'
{
  "status": "success",
  "users": []
}