Move a file to another Documents folder
post
https://api.expiryedge.com/v1/moveFolderFileeditor or admin60/min
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/moveFolderFile' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fileId": "ff_7Qm2xKp",
"folderId": "fld_Archive2025"
}'Antwort
{
"file": {
"id": "ff_7Qm2xKp",
"name": "Liability Insurance Certificate 2026.pdf",
"size": 184022,
"type": "application/pdf",
"url": "https://firebasestorage.googleapis.com/v0/b/expiryedge.appspot.com/o/organizations%2Forg_northwind%2Ffolder_files%2Ffld_Ins2026%2F1790518300000_Liability_Insurance_Certificate_2026.pdf?alt=media&token=3f0c8a52-6d1e-4b8e-9a51-0c2f7d9e1b44",
"storage_path": "organizations/org_northwind/folder_files/fld_Ins2026/1790518300000_Liability_Insurance_Certificate_2026.pdf",
"folder_id": "fld_Archive2025",
"uploaded_at": "2026-09-27T14:05:00.000Z",
"uploaded_by_name": "Dana Whitfield"
}
}Only folder_id changes (same as dragging in the app); storage_path and url stay the same.
folderId is required: pass null or root to move the file to the top level.
fileIdstringerforderlichfolderIdstring | nullerforderlichTarget folder id, or null /rootfor the top level.
200
File moved.
fileobjecterforderlichA file in the Documents (Folders) file manager. Same record the web app creates.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
405 | The endpoint does not accept this HTTP method. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
