Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

training_project_id
string
required
training_job_id
string
required

Body

application/json

A request to update mutable fields on a training job.

Every field is optional so a caller can patch one without the other, but at least one must be provided: an empty body has nothing to apply.

priority
integer | null

New queue priority for a PENDING training job. Higher values are dequeued first. Only jobs in the PENDING state can have their priority changed.

Example:

0

availability_model
enum<string> | null

New capacity guarantee for a PENDING training job. 'dedicated' runs on on-demand capacity that is not preempted. 'spot' runs on interruptible capacity that may be preempted; the user is responsible for checkpointing their own progress. Only jobs in the PENDING state can have their availability model changed.

Available options:
dedicated,
spot
Example:

"spot"

Response

200 - application/json

A response to updating a training job.

training_job
TrainingJobV1 · object
required

The updated training job.