Documentation Index Fetch the complete documentation index at: https://docs.drime.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Overview
When a file with the same name already exists, this endpoint suggests an alternative filename by appending a counter (e.g., “file.txt” becomes “file (1).txt”).
Request Body
Original filename that needs an alternative
Parent folder ID where the file will be uploaded. Use null for root.
Response
Suggested alternative filename with counter
curl -X POST https://app.drime.cloud/api/v1/entry/getAvailableName \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "report.pdf",
"parentId": null,
"workspaceId": 0
}'
200 - First duplicate
200 - Second duplicate
{
"name" : "report (1).pdf"
}
Use this in conjunction with /uploads/validate to handle duplicate files gracefully.