Bulk Actions
Perform actions on multiple conversions at once, including approval, rejection, and deletion.
Last updated: April 9, 2026
Bulk Actions
POST /siren/v1/conversions/bulk
Performs an action on multiple conversions at once.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: approve, reject, markPending, delete, permanent_delete |
ids | integer[] | Yes | Array of conversion IDs to act upon |
Action Behaviors
| Action | Effect | Events |
|---|---|---|
approve | Sets status to approved via ConversionApproveService | Broadcasts ConversionApproved per record, which triggers MarkObligationsAsPending to transition the linked obligation from draft to pending |
reject | Sets status to rejected | Broadcasts ConversionRejected per record, which triggers RejectObligations to transition the linked obligation from draft to rejected |
markPending | Sets status to pending | — |
delete | Sets status to deleted (soft delete) | — |
permanent_delete | Permanently removes records from database | — |
Non-existent IDs are silently skipped. Datastore errors on individual records are logged but do not halt processing of remaining IDs.
Example Request
{
"action": "approve",
"ids": [1, 2, 3]
}
Example Response
{
"success": true,
"affected": 3
}