PUT
/
prompts
/
{promptId}
/
versions
/
{versionId}
curl --request PUT \
  --url https://api.portkey.ai/v1/prompts/{promptId}/versions/{versionId} \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '{
  "label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

promptId
string
required
versionId
string
required

Body

application/json
label_id
string

Response

200
application/json
Prompt version updated successfully

The response is of type object.