Rename a file in Documents

posthttps://api.expiryedge.com/v1/renameFolderFile
editor or admin60/min
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/renameFolderFile' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "fileId": "ff_7Qm2xKp",
  "name": "Northwind Dental - Liability Certificate 2026.pdf"
}'
Antwort
{
  "file": {
    "id": "ff_7Qm2xKp",
    "name": "Northwind Dental - Liability 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_Ins2026",
    "uploaded_at": "2026-09-27T14:05:00.000Z",
    "uploaded_by_name": "Dana Whitfield"
  }
}

Changes the display name only; the stored file and its download URL do not change.

Body-Parameter

application/json
  • fileIdstringerforderlich
  • namestringerforderlich
    New name; leading and trailing spaces are removed.
    min length: 1 · max length: 255

Rückgabe

200
File renamed.
  • fileobjecterforderlich
    A file in the Documents (Folders) file manager. Same record the web app creates.

Fehler

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.