v1

latestOpenAPI 3.1.02026-08-063776831.4 MB
MonitoringWorkflow

Unassign multiple monitoring workflows

Removes assignments from multiple monitoring workflows. Workflows can be specified by IDs or fetched using filter criteria.

patch/monitoring-workflows/unassign

Headers

tenant-idstring required

Tenant ID

Request body

workflowIdsstring[]

List of monitoring workflow IDs to unassign (workflow IDs will be fetched using the filter if not provided).

filterstring

Filter criteria as JSON string (URL encoded). Used to fetch workflow IDs. See GET /monitoring-workflows endpoint documentation for filter format.

Example request

{
  "workflowIds": [
    "44c8fa75-15a1-4790-a0dd-139058d1f86d",
    "55d9fb86-26b2-5801-b1ee-240169e2f97e"
  ],
  "filter": "{\"data.workflowStatus\":{\"eq\":\"PENDING\"}}"
}

Response

Bulk unassignment operation completed. Check successful and failed arrays for individual results.

totalProcessedinteger

Total number of workflows processed

successCountinteger

Number of successful unassignments

failureCountinteger

Number of failed unassignments

Example response

{
  "successful": [
    {
      "workflowId": "44c8fa75-15a1-4790-a0dd-139058d1f86d"
    }
  ],
  "failed": [
    {
      "workflowId": "44c8fa75-15a1-4790-a0dd-139058d1f86d"
    }
  ]
}