Skip to content
AiventicDeveloper Docs
Esc
↑↓navigate↵open⌘Jpreview

Start a job's triage

Start the app’s triage of a job the key’s member sees; it runs in the background.

Answers 202 at once with Location: /v1/job/{jobId}/triage; read that for the outcome, which usually takes one to three minutes. A job that already has a triage needs a context saying what to look at again. One triage runs per job at a time: a start while one is queued or running is 409 triage-in-progress. Where the team writes triage results back to its field-service system, this triage does too. This route has its own rate limits, per key per hour and per team per day, beside the others.

Scope: jobs:triage

POST/v1/job/{jobId}/triage
Authorization
AuthorizationBearer token (aiv_sk_) · headerrequired

An Aiventic API key, sent as Authorization: Bearer aiv_sk_....

Path parameters
jobIdstring<uuid>required
Header parameters
Idempotency-Keystring

Makes the start safe to retry for 24 hours: a retry with the same key, job and context gets the stored 202 instead of a second triage. Only an accepted start is stored. The same key while the first request runs is 409 idempotency-key-in-use; with a different request, 422 idempotency-key-reused. Keys are per key lineage and case-sensitive, and apart from the keys used on ask.

min length 1 · max length 255 · matches ^[\x21-\x7E]+$
Request body
application/json
One of:
null
null
PublicJobTriageRequest
contextstring | nullrequired

What to look at, such as a new symptom. Needed when the job already has a triage.

Responses
202

Accepted

statusPublicJobTriageStatusrequired
Allowed:nonequeuedrunningcompletedfailedblocked
requestedAtstring<date-time>required
runIdstring<uuid>required
400

Bad Request

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
401

Unauthorized

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
403

Forbidden

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
404

Not Found

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
409

Conflict

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
422

Unprocessable Entity

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
429

Too Many Requests

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
500

Internal Server Error

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.aiventic.ai/v1/job/497f6eca-6276-4993-bfeb-53cbbbba6f08/triage' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'
Response
{
  "status": "none",
  "requestedAt": "2019-08-24T14:15:22Z",
  "runId": "78c33d18-170c-44d3-a227-b3194f134f73"
}