Labels
Bnder API documentation for Labels. Read the API Overview to get started and learn more.
Get all labels
Get all labels for a guild by the guilds id
GET/consumer/v1/guilds/guildId /labels
| Parameters | Description |
|---|---|
| guildId | The id of a discord guild |
Request body
empty
Response
Status: 200 - All labels for the guild
| Field | Type | Description |
|---|---|---|
| labels | array | List of labels |
Create a label
Create a label for a guild
POST/consumer/v1/guilds/guildId /labels
| Parameters | Description |
|---|---|
| guildId | The id of a discord guild |
Request body
| Field | Type | Description |
|---|---|---|
| name | string | The name of the label |
| color | string | The color of the label |
| description | string | The description of the label |
Response
Status: 200 - The created label
| Field | Type | Description |
|---|---|---|
| id | string | The id of the label |
| name | string | The name of the label |
| color | string | The color of the label |
| description | string | The description of the label |
Update a label
Update a label for a guild by the guild and label id
PUT/consumer/v1/guilds/guildId /labels/labelId
| Parameters | Description |
|---|---|
| guildId | The id of a discord guild |
| labelId | The ID of the label |
Request body
| Field | Type | Description |
|---|---|---|
| name | string | The name of the label |
| color | string | The color of the label |
| description | string | The description of the label |
Response
Status: 200 - The updated label
| Field | Type | Description |
|---|---|---|
| id | string | The id of the label |
| name | string | The name of the label |
| color | string | The color of the label |
| description | string | The description of the label |
Delete a label
Delete a label for a guild by the guild and label id
DELETE/consumer/v1/guilds/guildId /labels/labelId
| Parameters | Description |
|---|---|
| guildId | The id of a discord guild |
| labelId | The ID of the label |
Request body
empty
Response
Status: 204 - The label was deleted
empty response