Updates a platform role for a team.
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}Permissions 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 requiredprojects
[array]- stringmin length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$
restrictionMode
stringone ofin, notIn
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}enabled
boolean requiredprojects
[array]- stringmin length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$
restrictionMode
stringone ofin, notIncreatedAt
stringCreation time.updatedAt
stringLast updated.permissions
{object} requiredteamScope
[array] requiredTeam-level permissions.- string
projectScope
[array] requiredProject-level permissions.- string
API
CLI
JS Client
PATCH /v1/teams/{teamId}/roles/{roleId}
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PATCH \
--data '{"description":"Role for developers."}' \
https://api.northflank.com/v1/teams/{teamId}/roles/{roleId}Example response
200 OK
Details about the updated team role.
JSON
{
"data": {
"id": "developer",
"name": "Developer",
"description": "Role for developers.",
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
}