jobs

Scheduled job labels

Changed on

Replace user-provided labels on a scheduled job

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

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/scheduled-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 scheduled job after labels have been updated

idstring required
createdAtstring date-time required
schedulestring required
suspendboolean required
suspendReasonstring
concurrencyboolean required
type'scheduled-job' required

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_-]+$

    • info

      added the optional property / to the response with the status