Skip to content

Team management, membership, and team-level role assignment.

GET/org/teams

List teams

Returns all teams within the organization, including their member counts and descriptions.

Parameters

pageinteger
page

The page number to retrieve (1-indexed). Used with limit to support offset-based pagination.

Type
integer
Format
"int32"
Minimum
1
Default
1
limitinteger
limit

The maximum number of items to list.

Type
integer
Format
"int32"
Minimum
0
Maximum
100
Default
100
sortBystring
sortBy

The field to sort by.

Type
string
Valid values
"name""email"
Default
"name"
sortDirectionstring
sortDirection

The direction to sort (ascending or descending).

Type
string
Valid values
"asc""desc"
Default
"asc"
Responses

Responses

A list of teams is returned.

application/json
JSON
{
  
"total": 0,
  
"items": [
  
  
{
  
  
  
"team": {
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"organizationId": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"createdAt": "string",
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
"updatedAt": "string",
  
  
  
  
"updatedBy": "A1B2C3D4E5",
  
  
  
  
"defaultRoleId": "A1B2C3D4E5"
  
  
  
},
  
  
  
"memberCount": 0
  
  
}
  
]
}
POST/org/teams

Create a team

Creates a new team within the organization. Teams are used to group members and control access to clusters, jobs, and queries.

Request Body

application/json
JSON
{
  
"organizationId": "A1B2C3D4E5",
  
"name": "string",
  
"defaultRoleId": "A1B2C3D4E5"
}
Responses

Responses

Successfully created team.

application/json
JSON
{
  
"team": {
  
  
"id": "A1B2C3D4E5",
  
  
"organizationId": "A1B2C3D4E5",
  
  
"name": "string",
  
  
"createdAt": "string",
  
  
"createdBy": "A1B2C3D4E5",
  
  
"updatedAt": "string",
  
  
"updatedBy": "A1B2C3D4E5",
  
  
"defaultRoleId": "A1B2C3D4E5"
  
},
  
"memberCount": 0
}
GET/org/teams/{team}

Describe a team

Returns the full details of a team, including its name, description, and member count.

Responses

Responses

The team response.

application/json
JSON
{
  
"team": {
  
  
"id": "A1B2C3D4E5",
  
  
"organizationId": "A1B2C3D4E5",
  
  
"name": "string",
  
  
"createdAt": "string",
  
  
"createdBy": "A1B2C3D4E5",
  
  
"updatedAt": "string",
  
  
"updatedBy": "A1B2C3D4E5",
  
  
"defaultRoleId": "A1B2C3D4E5"
  
},
  
"memberCount": 0
}
DELETE/org/teams/{team}

Delete a team

Permanently removes a team and all its member assignments. Resources previously shared with this team become inaccessible to its former members unless they have access through another team.

Responses

Responses

The requested operation was done successfully.

PATCH/org/teams/{team}

Update a team

Modifies a team's metadata such as its name or description.

Request Body

application/json
JSON
{
  
"name": "string",
  
"defaultRoleId": "A1B2C3D4E5"
}
Responses

Responses

Successfully updated team.

application/json
JSON
{
  
"team": {
  
  
"id": "A1B2C3D4E5",
  
  
"organizationId": "A1B2C3D4E5",
  
  
"name": "string",
  
  
"createdAt": "string",
  
  
"createdBy": "A1B2C3D4E5",
  
  
"updatedAt": "string",
  
  
"updatedBy": "A1B2C3D4E5",
  
  
"defaultRoleId": "A1B2C3D4E5"
  
},
  
"memberCount": 0
}
GET/org/teams/{team}/members

List team members

Returns all members of a team, including their assigned team roles.

Parameters

pageinteger
page

The page number to retrieve (1-indexed). Used with limit to support offset-based pagination.

Type
integer
Format
"int32"
Minimum
1
Default
1
limitinteger
limit

The maximum number of items to list.

Type
integer
Format
"int32"
Minimum
0
Maximum
100
Default
100
sortBystring
sortBy

The field to sort by.

Type
string
Valid values
"name""email"
Default
"name"
sortDirectionstring
sortDirection

The direction to sort (ascending or descending).

Type
string
Valid values
"asc""desc"
Default
"asc"
Responses

Responses

A list of team members is returned.

application/json
JSON
{
  
"total": 0,
  
"items": [
  
  
{
  
  
  
"memberId": "A1B2C3D4E5",
  
  
  
"userId": "A1B2C3D4E5",
  
  
  
"roleIds": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"teamRoleIds": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"isAutomatic": true
  
  
}
  
],
  
"included": {
  
  
"members": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"organizationId": "A1B2C3D4E5",
  
  
  
  
"userId": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"email": "alice@example.com",
  
  
  
  
"preferences": {
  
  
  
  
},
  
  
  
  
"invitedByMemberId": "A1B2C3D4E5",
  
  
  
  
"inviteExpiresAt": "string",
  
  
  
  
"inviteAcceptedAt": "string",
  
  
  
  
"lastLoginAt": "string",
  
  
  
  
"lastActiveAt": "string",
  
  
  
  
"isEnabled": true,
  
  
  
  
"accountType": "managed",
  
  
  
  
"createdAt": "string",
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
"updatedAt": "string",
  
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
  
}
  
  
],
  
  
"users": [
  
  
  
{
  
  
  
  
"user": {
  
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
  
"email": "alice@example.com",
  
  
  
  
  
"givenName": "string",
  
  
  
  
  
"familyName": "string",
  
  
  
  
  
"displayName": "string",
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
  
"updatedAt": "string",
  
  
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
  
  
},
  
  
  
  
"emails": [
  
  
  
  
  
{
  
  
  
  
  
  
"userId": "A1B2C3D4E5",
  
  
  
  
  
  
"email": "alice@example.com",
  
  
  
  
  
  
"verifiedAt": "string",
  
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
  
  
"updatedAt": "string",
  
  
  
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"auth": {
  
  
  
  
  
"has2FA": true,
  
  
  
  
  
"hasPassword": true,
  
  
  
  
  
"hasRecovery": true
  
  
  
  
}
  
  
  
}
  
  
],
  
  
"roles": [
  
  
  
{
  
  
  
  
"role": {
  
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
  
"organizationId": "A1B2C3D4E5",
  
  
  
  
  
"name": "string",
  
  
  
  
  
"description": "string",
  
  
  
  
  
"allTeams": true,
  
  
  
  
  
"breakGlass": true,
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
  
"updatedAt": "string",
  
  
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
  
  
},
  
  
  
  
"memberCount": 0,
  
  
  
  
"permissionCount": 0
  
  
  
}
  
  
],
  
  
"teamRoles": [
  
  
  
{
  
  
  
  
"role": {
  
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
  
"organizationId": "A1B2C3D4E5",
  
  
  
  
  
"name": "string",
  
  
  
  
  
"description": "string",
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
  
"updatedAt": "string",
  
  
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
  
  
},
  
  
  
  
"memberCount": 0,
  
  
  
  
"permissionCount": 0
  
  
  
}
  
  
]
  
}
}
POST/org/teams/{team}/members/{member}

Add a team member

Adds an existing organization member to a team, granting them access to the team's associated resources (clusters, jobs, queries). If roleIds is omitted or empty, the team's configured default role is used.

Request Body

application/json
JSON
{
  
"roleIds": [
  
  
[
  
  
  
"ROLE123"
  
  
]
  
]
}
Responses

Responses

The member was added to the team successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"memberId": "A1B2C3D4E5",
  
"teamId": "A1B2C3D4E5",
  
"isAutomatic": true,
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
DELETE/org/teams/{team}/members/{member}

Remove a team member

Removes a member from a team. The member loses access to resources shared with this team unless they have access through another team.

Responses

Responses

The member was removed from the team successfully.

PUT/org/teams/{team}/members/{member}/roles

Update team member roles

Syncs the team roles for a team member by replacing all existing roles with the provided list.
At least one role must be provided; to remove a member from the team entirely use the
remove-team-member endpoint instead.
The member must be a member of the team before roles can be assigned.

Request Body

application/json
JSON
{
  
"roleIds": [
  
  
[
  
  
  
"ROLE123",
  
  
  
"ROLE456"
  
  
]
  
]
}
Responses

Responses

The requested operation was done successfully.