Close a hub Action Item as Done or Cancelled.
Close a hub Action Item as Done or Cancelled.
Exactly one target form is accepted:
producer+producer_id— close the row at that upsert key, orakiflow_task_id— resolve through task links, then connector metadata, then Akiflow-native (ProducerAkiflow, Producer ID = the task id). Returnsnot_foundif no hub row matches.
Idempotent: a second identical close call writes nothing and reports
already_closed. Closing an item in a different terminal status is a
real state change and writes.
Only Status and Status since are written. Promotion, Rank,
Priority, Metrics, and every producer-owned field are left untouched.
actor: the calling process — must be in the valid-actor list
(see VALID_ACTORS). Rejected before any HTTP call.
status: Done or Cancelled.
producer: hub Producer name (e.g. Linear, Akiflow).
producer_id: hub Producer ID (e.g. SAG-2650, an Akiflow task uuid).
akiflow_task_id: Akiflow task uuid. Resolves to a hub row via the order
described above.
Returns a JSON string with one of these shapes:
{"status": "closed", "page_id": ..., "previous_status": ..., "new_status": ...}— a row was closed{"status": "already_closed", "page_id": ..., "current_status": ...}— the row was already in the requested status; nothing was written{"status": "not_found"}— no hub row matched the key{"status": "ambiguous", "match_count": N}— more than one row matched; nothing was written{"status": "error", "error": "..."}— actor/status invalid or no target form was provided
Authorizations
Body
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.