PUT
/
labels
/
{labelId}
curl --request PUT \
  --url https://api.portkey.ai/v1/labels/{labelId} \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "color_code": "<string>"
}'
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

labelId
string
required

ID of the label to update

Body

application/json
name
string

Name of the label

description
string

Description of the label

color_code
string

Color code for the label

Response

200
application/json
OK

The response is of type object.