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
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/unshare', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 12345
})
});
const { users } = await response.json();
console.log('Remaining shared users:', users);
import requests
response = requests.delete(
'https://app.drime.cloud/api/v1/file-entries/123456/unshare',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'userId': 12345}
)
users = response.json()['users']
print(f'Remaining shared users: {users}')
{
"status": "success",
"users": []
}
Sharing
Unshare Entry
Remove sharing access from a user
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
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/unshare', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 12345
})
});
const { users } = await response.json();
console.log('Remaining shared users:', users);
import requests
response = requests.delete(
'https://app.drime.cloud/api/v1/file-entries/123456/unshare',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'userId': 12345}
)
users = response.json()['users']
print(f'Remaining shared users: {users}')
{
"status": "success",
"users": []
}
Overview
Removes a user’s access to a shared file or folder.Path Parameters
integer
required
ID of the shared file or folder
Request Body
integer
required
ID of the user to remove access from
Response
array
Updated list of users who still have access
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
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/unshare', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 12345
})
});
const { users } = await response.json();
console.log('Remaining shared users:', users);
import requests
response = requests.delete(
'https://app.drime.cloud/api/v1/file-entries/123456/unshare',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'userId': 12345}
)
users = response.json()['users']
print(f'Remaining shared users: {users}')
{
"status": "success",
"users": []
}
⌘I

