POST
/
api
/
v0
/
team
create team
curl --request POST \
  --url https://console.vast.ai/api/v0/team \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "team_name": "my-awesome-team",
  "permissions": {
    "api": {
      "misc": {},
      "user_read": {},
      "instance_read": {},
      "instance_write": {},
      "billing_read": {},
      "billing_write": {}
    }
  }
}'
{
  "msg": "Team Successfully Created!"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
team_name
string
required

Name for the new team

Example:

"my-awesome-team"

permissions
object
required

JSON object containing role and permission definitions. https://vast.ai/docs/cli/roles-and-permissions

Example:
{
"api": {
"misc": {},
"user_read": {},
"instance_read": {},
"instance_write": {},
"billing_read": {},
"billing_write": {}
}
}

Response

Team created successfully

msg
string
Example:

"Team Successfully Created!"