Skip to content

Labels

Labels classify participants and resolve requests for filtering and reporting.

Label read endpoints require the listed api:labels:read scope and an active owner identity. Label mutation endpoints require the listed api:labels:write scope and an owner identity with label-management access. Admins and effective project owners can create and update labels. Non-admin project owners can delete only labels they created, and only when every usage is in projects they own.

MethodPathRequired scope
GET/api/v1/labelsapi:labels:read
POST/api/v1/labelsapi:labels:write
GET/api/v1/labels/:idapi:labels:read
PATCH/api/v1/labels/:idapi:labels:write
DELETE/api/v1/labels/:idapi:labels:write
Terminal window
curl "https://roster.example.com/api/v1/labels?query=finance&limit=20" \
-H "Authorization: Bearer ${ROSTER_API_KEY}"

query searches label name case-insensitively. limit accepts values from 1 to 100.

Terminal window
curl -X POST "https://roster.example.com/api/v1/labels" \
-H "Authorization: Bearer ${ROSTER_API_KEY}" \
-H "Content-Type: application/json" \
-d '{ "name": "Finance", "color": "#C84A1F" }'