Labels
Read the API Overview to get started and learn more.
Create Label
Creates a new label.
POST
/
guilds
/
guildId
/
labels
Request body
Field | Type | Description |
---|---|---|
name | string | Name of the label |
color (optional) | string | Name of a color supported by bnder |
Response body
Returns LabelEntity
Returns a 200 status
Get Labels
Returns all labels in a guild.
GET
/
guilds
/
guildId
/
labels
Request body -
Response body
Returns a list of LabelEntities
Returns a 200 status
Update Label
Changes the name or color of a label.
PUT
/
guilds
/
guildId
/
labels
/
labelId
Request body
Field | Type | Description |
---|---|---|
name (optional) | string | Name of the label |
color (optional) | string | Name of a color supported by bnder |
Response body
Returns LabelEntity
Returns a 200 status
Delete Label
Deletes a label from the guild.
DELETE
/
guilds
/
guildId
/
labels
/
labelId
Request body -
Response body -
Returns a 204 status
Label Entity
Field | Type | Description |
---|---|---|
id | string | The labels Id |
name | string | Name of the label |
color (optional) | string | Hexadecimal color code |