Skip to content

Restore a document from trash

POST
/api/v1/documents/{id}/restore
curl --request POST \
--url https://your-orimora-instance.example.com/api/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \
--header 'Authorization: Bearer <token>'

Inverse of delete — restores a soft-deleted document to its collection. No-op-safe. List the trash via GET /api/v1/documents?deleted=true.

id
required
string format: uuid

Restored document

Media type application/json
object
data
required
object
id
required
string format: uuid
status
required
string
Allowed values: restored
Example
{
"data": {
"status": "restored"
}
}

Not found or not in trash

Media type application/json
object
error
required

Human-readable error message

string
Example generated
{
"error": "example"
}