v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
TeamsService

List deployment teams

List a deployment's Role-Based Access Control teams

post/api/permissions/v2/deployments/{deploymentId}/teams/list

Path parameters

deploymentIdinteger required

The unique numerical identifier for the deployment.

Example:1111

Deployment ID for which to list teams

Request body

limitstring int64

Maximum number of items to return in a single page.

cursorstring

Opaque cursor used for pagination. If not provided the first page will be returned.

Example request

{
  "limit": "100",
  "filter": {
    "name": "team1"
  }
}

Response

OK

cursorstring

Opaque cursor used for pagination. If not provided the first page will be returned.

Example response

{
  "teams": [
    {
      "id": "1234",
      "deploymentId": "1111",
      "name": "My Team",
      "slug": "my-team",
      "parentTeamId": "1234",
      "repositoryCount": "1",
      "userCount": "1",
      "childTeamCount": "1",
      "authorizedScopes": [
        "TEAM_SCOPE_DIRECT_MEMBER",
        "TEAM_SCOPE_MANAGE"
      ]
    }
  ]
}