jobs

Update job labels

Changed on

Replace user-provided labels on a job

put/api/jobs/{namespace}/{jobId}/labels

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/jobs/{namespace}/{jobId}/labels
  • Auth: HTTP bearer

Path parameters

namespacestring required
jobIdstring required

Request body

labelsobject required

The new labels to set on the job. Replaces all existing labels.

Response

The job after labels have been updated

idstring required
createdAtstring date-time required
spaceIdstring
dockerImagestring
timeoutnumber
environmentobject required
commandstring[]
argumentsstring[]
arch'amd64' | 'arm64'
flavor'cpu-basic' | 'cpu-upgrade' | 'cpu-performance' | 'cpu-xl' | 'sprx8' | 'zero-a10g' | 't4-small' | 't4-medium' | 'l4x1' | 'l4x4' | 'l40sx1' | 'l40sx4' | 'l40sx8' | 'a10g-small' | 'a10g-large' | 'a10g-largex2' | 'a10g-largex4' | 'a100-large' | 'a100x4' | 'a100x8' | 'h200' | 'h200x2' | 'h200x4' | 'h200x8' | 'rtx-pro-6000' | 'rtx-pro-6000x2' | 'rtx-pro-6000x4' | 'rtx-pro-6000x8' | 'inf2x6' required
resourceGroupIdstring
retrynumber
startedAtstring date-time
finishedAtstring date-time
type'job' required
secretsstring[]
labelsobject

Changes

    • warning

      changed the pattern of the request property / from ^[a-zA-Z0-9._-]*$ to ^[a-zA-Z0-9_-]*$

    • warning

      changed the pattern of the request property / from ^[a-zA-Z0-9._-]+$ to ^[a-zA-Z0-9_-]+$

    • warning

      added the new SPEND_LIMIT enum value to the // response property for the response status