Rate this page:
GET /1/labels/{id}
Get information about a single Label.
string
The ID of the Label
^[0-9a-fA-F]{32}$
string
The API key to use
^[0-9a-fA-F]{32}$
string
The API token to use
^[0-9a-fA-F]{64}$
string
all or a comma-separated list of fields
all
1 2
curl --request GET \
--url 'https://api.trello.com/1/labels/{id}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548'
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]{32}$
string
The API key to use
^[0-9a-fA-F]{32}$
string
The API token to use
^[0-9a-fA-F]{64}$
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=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548'
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]{32}$
string
The API key to use
^[0-9a-fA-F]{32}$
string
The API token to use
^[0-9a-fA-F]{64}$
1 2
curl --request DELETE \
--url 'https://api.trello.com/1/labels/{id}'
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 API key to use
^[0-9a-fA-F]{32}$
string
The API token to use
^[0-9a-fA-F]{64}$
string
The new value for the field.
^[0-9a-fA-F]{32}$
1 2
curl --request PUT \
--url 'https://api.trello.com/1/labels/{id}/{field}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548&value=5abbe4b7ddc1b351ef961414'
Success
A schema has not been defined for this response code.
POST /1/labels
Create a new Label on a Board.
string
The API key to use
^[0-9a-fA-F]{32}$
string
The API token to use
^[0-9a-fA-F]{64}$
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?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548&name={name}&color={color}&idBoard={idBoard}'
Success
A schema has not been defined for this response code.
Rate this page: