v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBTeamsService
Create a deployment RBAC team
Create a new Role-Based Access Control team for a deployment
post/api/permissions/v2/deployments/{deploymentId}/teams
Path parameters
deploymentIdinteger required
The unique numerical identifier for the deployment.
Example:1111
Request body
Example request
{
"team": {
"name": "my-team",
"repositoryIds": [
"1111",
"1112"
],
"users": [
{
"userId": "456"
}
],
"parentTeamId": "4321"
}
}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"
]
}
}