Move expiries into a folder
post
https://api.expiryedge.com/v1/moveToFoldereditor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/moveToFolder' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expiry_ids": [
"exp_4Tq9sLm2",
"exp_9Pd3kWx1"
],
"folder_id": "fld_2Kp9"
}'Antwort
{
"success": true,
"message": "2 expiries moved successfully",
"updated_count": 2,
"failed_count": 0,
"folder_id": "fld_2Kp9"
}Moves expiry_ids (max 1000) or a single expiryId into folder_id / folderId (null or omitted = no folder).
Ids that are invalid, missing or in another organization are counted in failed_count. Moves expiries only, not folders.
expiry_idsarray of stringmin items: 1 · max items: 1000expiryIdstringfolder_idstring | nullfolderIdstring | null
200
Move finished.
successbooleanerforderlichmessagestringerforderlichupdated_countintegererforderlichfailed_countintegererforderlichfolder_idstring | nullerforderlich
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. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
