Skip to content
dimmiDocs

Help center

Create a changelog label

POST/api/v1/help-centers/{help_center}/changelog-labels

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the changelog:write ability

Path parameters

help_centerstringrequired

Id of the help center, starting with hc_, such as hc_01jx2m8k4t. Find it with GET /help-centers.

Body

application/json
colorstring

Hex color such as #22c55e.

Maximum length: 7

namestring

The name of the changelog label, 1 to 40 characters, unique in the changelog, such as Improvement.

Maximum length: 40

positioninteger

Where the label sits in the list, counting from 0, lowest first, such as 2.

Format: int32

Response 201

Created
dataobjectrequired
Show child attributes
colorstringrequired

The label's color as a six-digit hex code, such as #3b82f6.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

namestringrequired

The label's name, 1 to 40 characters, such as Improvement.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

positionintegerrequired

The label's place in the changelog's label order; lower comes first.

Format: int32

slugstringrequired

The label's URL name: lowercase letters, digits and hyphens, such as bug-fixes. Unique within the help center.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.