Archive items
Move items from the Inbox to the Archive.
POST https://cotlet.dev/api/v1/dext/items/archive
write
Archives the items, in bulk. The call reaches no one and is undone with unarchive_items, so it runs without asking.
Parameters
| Name | Type | Description |
|---|---|---|
| item_ids string[] required | string[] | Item IDs from list_items. |
Request
curl -X POST https://cotlet.dev/api/v1/dext/items/archive \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_ids":["item ids"]}' result = client.call("dext", "archive_items", {"item_ids":["item ids"]}) const result = await cotlet.call('dext', 'archive_items', {"item_ids":["item ids"]}); cotlet call dext archive_items --data '{"item_ids":["item ids"]}' Example response
{
"archived": [
"it_7f3a11",
"it_7f3a12"
]
}