Rate this page:
GET /1/labels/{id}
Get information about a single Label.
string
The ID of the Label
^[0-9a-fA-F]{24}$
string
all or a comma-separated list of fields
all
1 2
curl --request GET \
--url 'https://api.trello.com/1/labels/{id}?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
PUT /1/labels/{id}
Update a label by ID.
string
The ID of the Label
^[0-9a-fA-F]{24}$
string
The new name for the label
string
The new color for the label. See: fields for color options
true
Valid values: yellow
, purple
, blue
, red
, green
, orange
, black
, sky
, pink
, lime
1 2
curl --request PUT \
--url 'https://api.trello.com/1/labels/{id}?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
DELETE /1/labels/{id}
Delete a label by ID.
string
The ID of the Label
^[0-9a-fA-F]{24}$
1 2
curl --request DELETE \
--url 'https://api.trello.com/1/labels/{id}?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
PUT /1/labels/{id}/{field}
Update a field on a label.
string
The id of the label
string
The field on the Label to update.
Valid values: color
, name
string
The new value for the field.
^[0-9a-fA-F]{24}$
1 2
curl --request PUT \
--url 'https://api.trello.com/1/labels/{id}/{field}?value=5abbe4b7ddc1b351ef961414&key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
POST /1/labels
Create a new Label on a Board.
string
Name for the label
string
The color for the label.
true
Valid values: yellow
, purple
, blue
, red
, green
, orange
, black
, sky
, pink
, lime
string
The ID of the Board to create the Label on.
1 2
curl --request POST \
--url 'https://api.trello.com/1/labels?name={name}&color={color}&idBoard={idBoard}&key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
Rate this page: