Complete action item
Check an action item off, or reopen it.
POST https://cotlet.dev/api/v1/otter/action-items/{action_item_id}/complete
write
Checks an action item off, which moves it to Completed, or reopens it when completed is false. The change shows in the conversation the item came from. complete_action_item runs without asking first: it sends nothing to anyone and is undone with one call.
Parameters
| Name | Type | Description |
|---|---|---|
| action_item_id string required | string | Action item ID from list_action_items. |
| completed boolean | boolean | false reopens the item. Default: true. |
Request
curl -X POST https://cotlet.dev/api/v1/otter/action-items/ai_204/complete \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"completed":true}' result = client.call("otter", "complete_action_item", {"action_item_id":"ai_204","completed":True}) const result = await cotlet.call('otter', 'complete_action_item', {"action_item_id":"ai_204","completed":true}); cotlet call otter complete_action_item --data '{"action_item_id":"ai_204","completed":true}' Example response
{
"action_item_id": "ai_204",
"text": "Send revised quote by Wednesday",
"completed": true
}