Skip to Content
CosmicAC Logo
API referenceApp node API

Team routes

Team membership and team settings.

/v1/teams

GET
/v1/teams

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

page?integer
Range1 <= value
pageSize?integer
Range1 <= value
sortBy?string
sortOrder?string
Value in"asc""desc"
includeTotal?string
Value in"true""false"
search?string
Lengthlength <= 255
status?string
Value in"active""archived"

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/v1/teams

POST
/v1/teams

Requires platform admin.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 255
description?string
Lengthlength <= 1024

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response200
Empty

/v1/teams/{id}

GET
/v1/teams/{id}

Requires team capability users.read. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams/string' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/v1/teams/{id}

PATCH
/v1/teams/{id}

Requires team capability team.update. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 255
description?string
Lengthlength <= 1024

Response Body

Default Response

Example Request
curl -X PATCH 'https://your-app-node-url/v1/teams/string' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty
GET
/v1/teams/{id}/permissions

Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams/string/permissions' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/v1/teams/{id}/archive

POST
/v1/teams/{id}/archive

Requires team capability team.archive. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/archive' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/v1/teams/{id}/unarchive

POST
/v1/teams/{id}/unarchive

Requires platform admin.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/unarchive' \  -H 'ttr-token: <session-token>'
Example Response200
Empty