/developers
Developer docsAtom Files ↗
← API referenceOrganize · API access unavailable
API REFERENCE / ORGANIZE

POST /v1/items/{item_id}/restore

Restore a trashed item into an authorized parent.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
HeaderContent-Typestring (media type)Yesapplication/json.
Pathitem_idstringYesStable file or folder ID.
HeaderIdempotency-KeystringYesStable retry identity.
Bodyparent_idstringNoReplacement destination if the original parent is unavailable.

Request example

Example request
POST /v1/items/file_789/restore
Authorization: Bearer <scoped token>
Idempotency-Key: restore-8427
Content-Type: application/json

{
  "parent_id": "folder_123"
}

HTTP status codes

StatusMeaning
202 AcceptedSuccess response shown below.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundTrashed item is not visible.
409 ConflictDestination or retention state prevents restore.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
operation_idstringop_460
item_idstringfile_789
statusstringaccepted

Response example

Example response
202 Accepted
Content-Type: application/json

{
  "operation_id": "op_460",
  "item_id": "file_789",
  "status": "accepted"
}

How it works

If the original parent no longer exists, the caller may choose another authorized folder. Restoration may conflict with a replacement name or expired retention.