v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
TeamsService

Update a deployment RBAC team

Update a deployment team's name, users, and repositories

patch/api/permissions/v2/deployments/{deploymentId}/teams/{teamId}

Path parameters

deploymentIdinteger required

The unique numerical identifier for the deployment.

Example:1111
teamIdinteger required

The unique numerical identifier for the team.

Example:1234

Request body

Example request

{
  "team": {
    "name": "My Team",
    "repositories": [
      {
        "repositoryId": "789"
      }
    ]
  }
}

Response

OK

Example response

{
  "team": {
    "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"
    ]
  }
}