PUT
/
prompts
/
partials
/
{promptPartialId}
/
makeDefault
curl --request PUT \
  --url https://api.portkey.ai/v1/prompts/partials/{promptPartialId}/makeDefault \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '{
  "version": 123
}'
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

promptPartialId
string
required

Body

application/json
version
number
required

Version Number to set as default

Response

200
application/json
Default version set successfully

The response is of type object.