Card Labels

Add label to card

Adds a label to a card. Requires board editor permissions.

post/cards/{cardId}/card-labels

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/cards/{cardId}/card-labels
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key

Path parameters

cardIdstring required
Example:1357158568008091264

ID of the card to add the label to

Request body

labelIdstring required

ID of the label to add to the card

Example request

{
  "labelId": "1357158568008091265"
}

Response

Label added to card successfully

Example response

{
  "item": {
    "id": "1357158568008091264",
    "cardId": "1357158568008091265",
    "labelId": "1357158568008091266",
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.