Skip to main content
PUT
/
v2
/
prompt-versions
/
{version_id}
/
labels
Set labels on a prompt version
curl --request PUT \
  --url https://api.arize.com/v2/prompt-versions/{version_id}/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "labels": [
    "production",
    "staging"
  ]
}
'
{
  "labels": [
    "production",
    "staging"
  ]
}

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Path Parameters

version_id
string
required

The unique identifier of the prompt version A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

Body

application/json

Body containing the labels to set on a prompt version

labels
string[]
required

Array of label names to set on the version (replaces all existing labels)

Minimum array length: 1

Response

Returns the labels set on a prompt version

labels
string[]
required

Label names on the version