Batch approve pending items

POST /api/v1/ap-approval/batch-approve

Approve multiple suspended workflow executions in a single request.

Operation ID: batch_approve_api_v1_ap_approval_batch_approve_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

execution_ids array · string required

List of workflow execution UUIDs to approve.

comment string

Optional comment applied to all approvals in the batch.

Responses

201 Successful Response

total integer required

Total executions submitted.

succeeded integer required

Number of successful approvals.

failed integer required

Number of failed approvals.

results array · BatchApproveResultItem BatchApproveResultItem

Per-execution results.

3 fields
execution_id string required

Execution UUID.

success boolean required

Whether this approval succeeded.

error string

Error message if the approval failed.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object