Rename or move a folder
post
https://api.expiryedge.com/v1/updateFoldereditor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/updateFolder?id=fld_8Tz4' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "State Dental Board",
"parent_folder_id": "fld_2Kp9"
}'Antwort
{
"success": true,
"message": "Folder updated successfully",
"folder": {
"id": "fld_8Tz4",
"name": "State Dental Board",
"parent_folder_id": "fld_2Kp9",
"folder_path": "/Licenses/State Dental Board",
"user_id": "u_71bXq",
"organization_id": "org_northwind",
"is_deleted": false,
"created_at": "2026-09-27T14:06:00.000Z",
"updated_at": "2026-09-28T09:12:00.000Z"
}
}Id from the id query parameter (or body id). Send name to rename and/or parent_folder_id to move
(null = root). Moves that would create a cycle return 400; descendants' folder_path is recomputed.
idstringFolder id (alternative to bodyid).
idstringFolder id (used whenidis not in the query).namestringmax length: 255parent_folder_idstring | null
200
Folder updated.
folder is the stored folder merged with the changes (no children or expiry_count).successbooleanerforderlichmessagestringerforderlichfolderobjecterforderlichA folder for organizing expiries. Folders nest viaparent_folder_id.
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. |
409 | A folder with this name already exists in this location. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
