Cancel a job
Trillet Partner API: Cancels a queued or running job.
Cancels a queued or running job. A queued job is cancelled at once. A running one comes
back with cancelRequested: true and stops at the next point it can: a provisioning job
then removes everything it built (agents, call flows, knowledge base, workflows) and its
receptionist is failed; a test run places no more calls. Cancelling a job that is already
cancelled returns it unchanged. Needs resources:write.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
^[a-fA-F0-9]{24}$Header Parameters
Optional. Works as on the endpoints that require it.
>= 1, <= 255Response
The job, cancelled, or running with cancelRequested true.
objectstringrequiredidstringrequired^[a-fA-F0-9]{24}$type"provision" | "test_run"requiredprovision: building a receptionist. test_run: testing one that exists.
"provision" | "test_run"status"queued" | "running" | "succeeded" | "failed" | "cancelled"required"queued" | "running" | "succeeded" | "failed" | "cancelled"stage"reading" | "building" | "testing" | "finishing" | nullWhere a running job is. null otherwise.
"reading" | "building" | "testing" | "finishing" | nullcancelRequestedbooleanA running job you cancelled. It stops at the next point it can.
tenantIdstring | nullattemptsintegerresultobject | nullSet when a job succeeds. A provisioning job has receptionistStatus,
reviewReason, frontDoorAgentId, agents and tests. A test run has total,
passed, passRate, requiredPassRate and meetsPassRate.
result.receptionistStatus"ready" | "needs_review""ready" | "needs_review"result.reviewReason"tests_failed" | "tests_unavailable" | "approval_required" | null"tests_failed" | "tests_unavailable" | "approval_required" | nullresult.frontDoorAgentIdstringresult.agentsarray<object>result.testsobjectresult.totalintegerTest run. Calls that connected and were judged.
result.passedintegerTest run.
result.passRatenumberTest run.
result.requiredPassRatenumberTest run.
result.meetsPassRatebooleanTest run.
errorobject | nullerror.codestringerror.messagestringcreatedAtstring | null<date-time>startedAtstring | null<date-time>finishedAtstring | null<date-time>Last updated on