Labels

2 Trellis API endpoints for labels, with the scopes, parameters and response each one takes.

Get a label

GET/workspace/{handle}/labels/{id}

Scopes

Needs a token holding issues:read, issues:write or projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Responses

200OK

LabelResponse

colorstring
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
descriptionstring
idstring
namestring
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

List the workspace's labels

POST/workspace/{handle}/labels/all-by-workspace

Scopes

Needs a token holding issues:read, issues:write or projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

Request bodyapplication/json

PaginationAndFilters

exclude_pending_deletionboolean
exclude_user_idsarray of stringnullable
filtersanynullable
ids_onlyboolean
include_invitesboolean
label_idsarray of stringnullable
limitintegernullable
pageintegernullable
querystringnullable
role_excludearray of stringnullable
role_slugsarray of stringnullable
sort_bystringnullable
sort_dirstringnullable
statusesarray of stringnullable

Responses

200OK

object

countinteger

Unfiltered item count, where the endpoint reports one. Omitted when zero.

dataarray of LabelResponsenullable
8 fields
colorstring
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
descriptionstring
idstring
namestring
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
limitinteger

Page size used for this response. Omitted when zero.

pageinteger

Current page, starting at 1. Omitted when zero.

totalinteger

Number of items matching the filters. Omitted when zero.

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.