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"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 on this version. Pass an empty array to remove all labels from this version. Labels are unique per prompt — a label can only be assigned to one version at a time. If a label in this array is currently assigned to a different version of the same prompt, it will be moved to this version automatically (no error is raised).

Response

Returns the labels set on a prompt version

labels
string[]
required

Label names on the version