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"
]
}Set (replace) all labels on a prompt version. This is an idempotent operation. If a label already exists on another version of the same prompt, it will be moved to this version.
Labels not included in the request will be removed from this 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.
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
The unique identifier of the prompt version A universally unique identifier
"RW50aXR5OjEyMzQ1"
Body containing the labels to set on a prompt version
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).
Returns the labels set on a prompt version
Label names on the version
Was this page helpful?
Suggestions