Cancel an outbound job
Cancels scheduled, queued, claimed, reserving, or retry-wait jobs. Repeating cancellation is a 200 no-op with changed=false, preserves the current ETag, and records an outbound_job.cancel.noop audit event. Once dialing may have begun, returns 409 and includes the linked call ID when known; end that call through the calls API instead.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
reason?stringOptional audit reason. Leading/trailing whitespace is removed and control characters are rejected.
8 <= length <= 500Job is canceled; changed distinguishes a transition from an idempotent no-op.
application/json- response
id*stringuuidstatus*stringchanged*booleanupdated_at*stringdate-timecurl -X POST 'https://api.kejue.co/v1/outbound-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "canceled", "changed": true, "updated_at": "2019-08-24T14:15:22Z"}