Skip to main content

Restore a doc

Restore doc from archive.

Parameters

No parameters.

Returns

Returns the restored doc object.

post
/api/docs/{id}/restore
curl -X POST https://{workspace}.kitchen.co/api/docs/{id}/restore \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"archived_at": null,
"body": [
"The doc body"
],
"clients_can_edit": false,
"created_at": "2024-03-12T10:11:23+00:00",
"id": "doc_36e7eeabce00ecd1f5e9387a",
"title": "The doc title",
"updated_at": "2024-03-12T10:11:23+00:00",
"visibility": "internal"
}