PUT
/
labels
/
{labelPublicId}
Update a label
curl --request PUT \
  --url https://kan.bn/api/v1/labels/{labelPublicId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "colourCode": "<string>"
}'
{
  "publicId": "<string>",
  "name": "<string>",
  "colourCode": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

labelPublicId
string
required
Minimum length: 12

Body

application/json
name
string
required
Required string length: 1 - 36
colourCode
string
required
Required string length: 7

Response

Successful response

publicId
string
required
name
string
required
colourCode
string | null
required