Skip to Content
CosmicAC Logo
API referenceApp node API

User routes

User accounts and profile management.

/v1/teams/{id}/members

GET
/v1/teams/{id}/members

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

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?|array<>

Response Body

Default Response

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

/v1/teams/{id}/members

POST
/v1/teams/{id}/members

Requires platform admin.

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
email*string
Formatemail
role*string
Value in"team_lead""member""viewer"

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/members' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com",  "role": "team_lead"}'
Example Response200
Empty
PATCH
/v1/teams/{id}/members/{userId}

Requires a team capability that depends on the request. 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
userId*string

Request Body

application/json
  1. body
Properties1 <= properties
role?string
Value in"team_lead""member""viewer"
status?string
Value in"active""suspended"

Response Body

Default Response

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

Requires team capability users.remove. 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
userId*string

Response Body

Default Response

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

Requires global permission users.deactivate.

Authorization

ttrToken
headerttr-token<token>

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

Request Body

application/json
  1. body
userId*integer
Range1 <= value
email?string
Length1 <= length

Response Body

Default Response

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

/v1/admin/users/activate

POST
/v1/admin/users/activate

Requires global permission users.activate.

Authorization

ttrToken
headerttr-token<token>

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

Request Body

application/json
  1. body
userId*integer
Range1 <= value
email?string
Length1 <= length

Response Body

Default Response

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