Required permission
Account > Admin > Roles > Manage
Path parameters
teamId
string requiredID of the teamroleId
string requiredID of the team role
Request body
- {object}
description
stringA description of the role.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$permissions
{object} requiredPermissions granted by this role.teamScope
[array]Team-level RBAC permission strings.- string
projectScope
[array]Project-level RBAC permission strings.- string
restrictions
{object}Project access restrictions for this role.enabled
boolean requiredWhether project restrictions are enabled.projects
[array]Project IDs this role is restricted to.- string
restrictionMode
stringWhether the restriction is inclusive or exclusive.one ofin, not-in
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredID of the role.pattern^[A-Za-z0-9-]+$name
string requiredDisplay name of the role.description
stringDescription of the role.restrictions
{object} requiredenabled
boolean requiredWhether project restrictions are enabled.projects
[array] requiredRestricted project IDs.- string
restrictionMode
stringRestriction mode.createdAt
stringCreation time.updatedAt
stringLast updated.permissions
{object} requiredteamScope
[array] requiredTeam-level permissions.- string
projectScope
[array] requiredProject-level permissions.- string
PUT /v1/teams/{teamId}/roles/{roleId}
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PUT \
--data '{"description":"Role for developers."}' \
https://api.northflank.com/v1/teams/{teamId}/roles/{roleId}Example response
200 OK
JSON
{
"data": {
"id": "developer",
"name": "Developer",
"description": "Role for developers.",
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
}