PUT
/
api
/
v0
/
team
/
roles
/
{id}
/
update team role
curl --request PUT \
  --url https://console.vast.ai/api/v0/team/roles/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "permissions": {}
}'
"Successfully Updated Team Role For <role_name>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the role to update.

Body

application/json
name
string
required

New name for the role.

permissions
object
required

JSON encoded permissions for the role.

Response

Successfully updated team role.

The response is of type string.

Example:

"Successfully Updated Team Role For <role_name>"