Teams

Create a team label

Creates a label for the team. Names are unique within the team, ignoring case. Leave the color out and the server picks the next unused hue from the palette.

post/v1/teams/{teamId}/labels

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/teams/{teamId}/labels
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:write)

Path parameters

teamIdstring required

Request body

namestring required

Label name. Trimmed, and unique within the team ignoring case.

color'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'gray'

Hue for the label. The server picks one when omitted.

Response

Response for status 201

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

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