Skip to content
NebulaCtrldocs
HTTP APIEndpoints

Teams

Teams of members that can own projects. Each operation lists its method and path, parameters, request body, responses and an example call.

GET/api/v1/teams

Authorization

AuthorizationBearer <token>

An API token, sent as Authorization: Bearer <token>. A token belongs to one organization and has the role it was created with, so it needs no X-Nebula-Organization header; if you send one, it must name the token's organization.

In: header

Query Parameters

cursor?string

Opaque cursor from a previous response's nextCursor. Omit for the first page.

limit?integer

How many items to return.

Formatint64
Range1 <= value <= 200
Default50

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/api/v1/teams"
{  "$schema": "https://example.com/PageTeamBody.json",  "items": [    {      "$schema": "https://example.com/TeamBody.json",      "createdAt": "2019-08-24T14:15:22Z",      "id": "string",      "members": [        {          "email": "string",          "name": "string",          "userId": "string"        }      ],      "name": "string",      "projectCount": 0,      "scimManaged": true,      "slug": "string"    }  ],  "nextCursor": "string"}

Create a team.

POST/api/v1/teams

Authorization

AuthorizationBearer <token>

An API token, sent as Authorization: Bearer <token>. A token belongs to one organization and has the role it was created with, so it needs no X-Nebula-Organization header; if you send one, it must name the token's organization.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/api/v1/teams" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "$schema": "https://example.com/TeamBody.json",  "createdAt": "2019-08-24T14:15:22Z",  "id": "string",  "members": [    {      "email": "string",      "name": "string",      "userId": "string"    }  ],  "name": "string",  "projectCount": 0,  "scimManaged": true,  "slug": "string"}

Rename a team.

PATCH/api/v1/teams/{id}

Authorization

AuthorizationBearer <token>

An API token, sent as Authorization: Bearer <token>. A token belongs to one organization and has the role it was created with, so it needs no X-Nebula-Organization header; if you send one, it must name the token's organization.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X PATCH "https://example.com/api/v1/teams/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "$schema": "https://example.com/TeamBody.json",  "createdAt": "2019-08-24T14:15:22Z",  "id": "string",  "members": [    {      "email": "string",      "name": "string",      "userId": "string"    }  ],  "name": "string",  "projectCount": 0,  "scimManaged": true,  "slug": "string"}
DELETE/api/v1/teams/{id}

Authorization

AuthorizationBearer <token>

An API token, sent as Authorization: Bearer <token>. A token belongs to one organization and has the role it was created with, so it needs no X-Nebula-Organization header; if you send one, it must name the token's organization.

In: header

Path Parameters

id*string

Response Body

application/problem+json

curl -X DELETE "https://example.com/api/v1/teams/string"
Empty
PUT/api/v1/teams/{id}/members

Authorization

AuthorizationBearer <token>

An API token, sent as Authorization: Bearer <token>. A token belongs to one organization and has the role it was created with, so it needs no X-Nebula-Organization header; if you send one, it must name the token's organization.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X PUT "https://example.com/api/v1/teams/string/members" \  -H "Content-Type: application/json" \  -d '{    "userIds": [      "string"    ]  }'
{  "$schema": "https://example.com/TeamBody.json",  "createdAt": "2019-08-24T14:15:22Z",  "id": "string",  "members": [    {      "email": "string",      "name": "string",      "userId": "string"    }  ],  "name": "string",  "projectCount": 0,  "scimManaged": true,  "slug": "string"}