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

Parameters: unarchive_items
NameTypeDescription
item_ids string[] required string[] Item IDs from list_items.
clear_publishing_data boolean boolean true allows republishing. Default: false.

Request

cURL
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"]}'
Python
result = client.call("dext", "unarchive_items", {"item_ids":["item ids"]})
Node.js
const result = await cotlet.call('dext', 'unarchive_items', {"item_ids":["item ids"]});
CLI
cotlet call dext unarchive_items --data '{"item_ids":["item ids"]}'

Example response

JSON

{
  "unarchived": [
    "it_7f2e90"
  ],
  "clear_publishing_data": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.