curl -X PUT https://app.drime.cloud/api/v1/file-entries/123456/shareable-link \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"password": "newpassword",
"allowDownload": true
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/shareable-link', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
allowDownload: true,
allowEdit: false
})
});
const { link } = await response.json();
console.log('Link updated');
import requests
response = requests.put(
'https://app.drime.cloud/api/v1/file-entries/123456/shareable-link',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'allowDownload': True,
'allowEdit': False
}
)
print('Link updated')
{
"status": "success",
"link": {
"id": 789,
"hash": "3h8N1nxZq7WtyRmXDIosFupSl9MCrD",
"user_id": 15843,
"entry_id": 123456,
"allow_edit": false,
"allow_download": true
}
}
Shareable Links
Update Shareable Link
Update shareable link settings
PUT
/
file-entries
/
{entryId}
/
shareable-link
curl -X PUT https://app.drime.cloud/api/v1/file-entries/123456/shareable-link \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"password": "newpassword",
"allowDownload": true
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/shareable-link', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
allowDownload: true,
allowEdit: false
})
});
const { link } = await response.json();
console.log('Link updated');
import requests
response = requests.put(
'https://app.drime.cloud/api/v1/file-entries/123456/shareable-link',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'allowDownload': True,
'allowEdit': False
}
)
print('Link updated')
{
"status": "success",
"link": {
"id": 789,
"hash": "3h8N1nxZq7WtyRmXDIosFupSl9MCrD",
"user_id": 15843,
"entry_id": 123456,
"allow_edit": false,
"allow_download": true
}
}
Overview
Updates the settings of an existing shareable link.Path Parameters
integer
required
ID or hash of the file entry
Request Body
string
New password (or remove by setting to null)
string
New expiration date (ISO 8601 format)
boolean
Allow editing via the link
boolean
Allow downloading via the link
Response
object
The updated shareable link object
string
Request status (
success)curl -X PUT https://app.drime.cloud/api/v1/file-entries/123456/shareable-link \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"password": "newpassword",
"allowDownload": true
}'
const response = await fetch('https://app.drime.cloud/api/v1/file-entries/123456/shareable-link', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
allowDownload: true,
allowEdit: false
})
});
const { link } = await response.json();
console.log('Link updated');
import requests
response = requests.put(
'https://app.drime.cloud/api/v1/file-entries/123456/shareable-link',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'allowDownload': True,
'allowEdit': False
}
)
print('Link updated')
{
"status": "success",
"link": {
"id": 789,
"hash": "3h8N1nxZq7WtyRmXDIosFupSl9MCrD",
"user_id": 15843,
"entry_id": 123456,
"allow_edit": false,
"allow_download": true
}
}
⌘I

