563848e0ecc0
Bulk-remove assignments from multiple workflows
Removes the current assignee from multiple monitoring workflows in one call. Use this endpoint for bulk unassignment; use PATCH /monitoring-workflows/{id}/unassign for a single workflow. The request body must supply either workflowIds or filter — at least one is required. Workflows in REVIEWED_BY_CERTIFYOS status are automatically excluded and appear in the response failed array. Requires all of: MONITORING_WORKFLOW_ASSIGN, MONITORING_WORKFLOW_BULK_ASSIGN, and MONITORING_WORKFLOW_ASSIGN_SELF. The tenant-id header is mandatory. Always returns HTTP 200, even when some unassignments fail — check the successful and failed arrays for per-workflow outcomes.
Headers
Tenant ID
Request body
Example request
{
"workflowIds": [
"44c8fa75-15a1-4790-a0dd-139058d1f86d",
"55d9fb86-26b2-5801-b1ee-240169e2f97e"
],
"filter": "{\"data.workflowStatus\":{\"eq\":\"PENDING\"}}"
}Response
Bulk unassignment completed. successful/failed are arrays of {workflowId, error} — error is null on success. totalProcessed, successCount, and failureCount summarize the batch.
Example response
{
"successful": [
{
"workflowId": "44c8fa75-15a1-4790-a0dd-139058d1f86d"
}
],
"failed": [
{
"workflowId": "44c8fa75-15a1-4790-a0dd-139058d1f86d"
}
]
}