Skip to main content

Archive a folder

Moves a folder to archive. All items in folder will be archived too. Can be restored later.

Parameters

No parameters.

Returns

Returns the archived folder object.

post
/api/folders/{id}/archive
curl -X POST https://{workspace}.kitchen.co/api/folders/{id}/archive \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"archived_at": "2024-03-07T07:47:02+00:00",
"created_at": "2024-03-12T14:18:37+00:00",
"id": "fo_19b9108c92d98f81224ece44",
"name": "New Folder",
"updated_at": "2024-03-12T14:18:37+00:00",
"visibility": "internal"
}