Run a named action
productive_run_actionRun Productive actions like archive, approve, or send on single records or bulk-filtered sets, with explicit filters required for bulk operations.
Instructions
Run one of Productive's named verbs: archive, restore, close, open, approve, reject, copy, finalize, send, reposition and the rest. Actions named bulk_* act on every record the filter matches rather than one, and refuse to run without an explicit filter. productive_describe_resource lists the actions a resource has.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Required for actions that act on one record. | |
| action | Yes | Action name, e.g. "archive", "approve", "send". | |
| filters | No | Server-side filters. A bare value means equality: {"assignee_id":"5"}. An array is comma-joined: {"id":["1","2"]}. An operator object narrows further: {"created_at":{"gt":"2026-01-01"}} — the ONLY operators Productive accepts are contains, eq, gt, lt, not_contain, not_eq. There is no gte/lte, so for an inclusive date range use the resource's own after/before filter fields instead. Logical groups nest: {"$op":"and","0":{"assignee_id":{"eq":"5"}},"1":{"company_id":{"eq":"7"}}}. Field names are validated against the resource — call productive_describe_resource for the list. | |
| resource | Yes | ||
| attributes | No | Attributes to write, by their Productive names. Validated against the resource contract first, because Productive answers 200 and ignores an unknown attribute rather than reporting it. Custom-field values go in a nested `custom_fields` object keyed by field id. |