Skip to main content
POST
/
api
/
v0
/
team
/
roles
/
create team role
curl --request POST \
  --url https://console.vast.ai/api/v0/team/roles/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "developer",
  "permissions": {
    "api": {
      "user_read": {},
      "instance_write": {}
    }
  }
}'
{
  "msg": "success"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
name
string
required

Name for the new role

Example:

"developer"

permissions
object
required

JSON object containing permission definitions

Response

Role created successfully

msg
string
Example:

"success"