curl -X POST "https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entryIds": [123]
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
entryIds: [123]
})
}
);
const { entries } = await response.json();
console.log('Created duplicates:', entries);
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/file-entries/duplicate',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'entryIds': [123]}
)
duplicates = response.json()['entries']
{
"status": "success",
"entries": [
{
"id": 124,
"name": "document (copy).pdf",
"type": "pdf",
"file_size": 1048576,
"parent_id": null,
"created_at": "2024-01-20T10:00:00.000000Z"
}
]
}
Files & Folders
Duplicate Entries
Create copies of files and folders
POST
/
file-entries
/
duplicate
curl -X POST "https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entryIds": [123]
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
entryIds: [123]
})
}
);
const { entries } = await response.json();
console.log('Created duplicates:', entries);
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/file-entries/duplicate',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'entryIds': [123]}
)
duplicates = response.json()['entries']
{
"status": "success",
"entries": [
{
"id": 124,
"name": "document (copy).pdf",
"type": "pdf",
"file_size": 1048576,
"parent_id": null,
"created_at": "2024-01-20T10:00:00.000000Z"
}
]
}
Overview
Creates duplicates of one or more file entries. The copies are created in the same location with “(copy)” appended to the name.Query Parameters
integer
Workspace context
Request Body
array
required
Array of entry IDs to duplicate
integer
Optional destination folder ID. If not provided, copies are created in the same location.
Response
array
Array of newly created duplicate entries
string
Request status (
success)curl -X POST "https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entryIds": [123]
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/file-entries/duplicate?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
entryIds: [123]
})
}
);
const { entries } = await response.json();
console.log('Created duplicates:', entries);
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/file-entries/duplicate',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={'entryIds': [123]}
)
duplicates = response.json()['entries']
{
"status": "success",
"entries": [
{
"id": 124,
"name": "document (copy).pdf",
"type": "pdf",
"file_size": 1048576,
"parent_id": null,
"created_at": "2024-01-20T10:00:00.000000Z"
}
]
}
⌘I

