Bulk Actions: Obligations
Perform an action on multiple obligations at once, including approve, reject, and delete.
Last updated: October 26, 2026
Bulk Actions
POST /siren/v1/obligations/bulk
Performs an action on multiple obligations at once.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: approve, reject, markComplete, restore, delete, permanent_delete |
ids | integer[] | Yes | Array of obligation IDs to act upon |
Action Behaviors
| Action | Status Set | Auth Required |
|---|---|---|
approve | approved, for a draft or rejected obligation that isn’t in a payout. Others are left as they are. | Update |
reject | rejected, for any status. A complete obligation stays in its payout | Update |
markComplete | complete | Update |
restore | approved for a deleted obligation, or complete if it’s in a payout | Update |
delete | deleted (soft delete, restorable) | Delete |
permanent_delete | (record removed) for a deleted or cancelled obligation that no payout includes | Delete |
Non-existent IDs are silently skipped. Datastore errors on individual records are logged but do not halt processing. permanent_delete is all or nothing: if any obligation in the request isn’t in the Trash (deleted or cancelled), or a payout includes it, nothing is deleted and the request returns 409.
Example Request
{
"action": "markComplete",
"ids": [10, 11, 12]
}
Example Response
{
"success": true,
"affected": 3
}
Statuses
See Obligations for every obligation status and how an obligation moves between them.