Skip to main content
POST
/
v1
/
prompts
/
labels
Point a named label at a specific version
curl --request POST \
  --url https://api.example.com/v1/prompts/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptId": "<string>",
  "label": "production",
  "versionId": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
promptId
string
required

Parent prompt UUID

label
string
required
Example:

"production"

versionId
string
required

Version UUID to point this label at

Response

204 - undefined