Unarchive items
Move items from the Archive back to the Inbox, optionally clearing publishing data.
POST https://cotlet.dev/api/v1/dext/items/unarchive
write Confirm
Returns items to the Inbox. With clear_publishing_data true, an already published item can be published again as a new transaction, which may create a duplicate in the accounting software. With false the item cannot be published again and shows a publishing error. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| item_ids string[] required | string[] | Item IDs from list_items. |
| clear_publishing_data boolean | boolean | true allows republishing. Default: false. |
Request
curl -X POST https://cotlet.dev/api/v1/dext/items/unarchive \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_ids":["item ids"]}' result = client.call("dext", "unarchive_items", {"item_ids":["item ids"]}) const result = await cotlet.call('dext', 'unarchive_items', {"item_ids":["item ids"]}); cotlet call dext unarchive_items --data '{"item_ids":["item ids"]}' Example response
{
"unarchived": [
"it_7f2e90"
],
"clear_publishing_data": false
}