Skip to main content
PUT
Update a label
Needs labels:update, and a role in the workspace that can edit labels: owners, managers, content managers and content creators can. See Permissions.
Send both name and color, even to change one of them: this isn’t a partial update, and a field left out is refused with 422. Posts that have the label keep it, with its new name and color. Labels are on paid plans. When the workspace owner is on Free, nothing changes and the answer is 403 with error: plan_limit_reached and limit: labels. The role and the plan are checked before the body, so on Free a bad body still gets the 403.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The label's id.

Body

application/json
name
string
required
Maximum string length: 255
color
string
required

A hex color, like #0EA5E9.

Response

The label after the change.

A label to tag posts with.

id
integer
required

The label's id. Send it in a post's labels.

name
string
required
Maximum string length: 255
color
string
required

A hex color, like #0EA5E9.

workspace
object
required

The label's workspace, as List workspaces gives it, with no accounts or brand_voice.