{ "opencollection": "1.0.0", "info": { "name": "Vast.ai Accounts Team API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Team", "type": "folder" }, "items": [ { "info": { "name": "create team", "type": "http" }, "http": { "method": "POST", "url": "https://console.vast.ai/api/v0/team", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new team with the authenticated user as the owner. The user's existing API key\nbecomes the owner key for the team. The user cannot already be a team or be a member of another team.\n\nThe operation:\n1. Converts the user into a team\n2. Creates default team roles (member, manager, owner)\n3. Converts user's API key into the owner key\n4. Adds the creating user as a team member\n\nCLI Usage: vast create team --name " }, { "info": { "name": "create team role", "type": "http" }, "http": { "method": "POST", "url": "https://console.vast.ai/api/v0/team/role", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new role within a team. Only team owners or managers with the appropriate permissions can perform this operation.\n\nCLI Usage: vast create team role --name --permissions " }, { "info": { "name": "destroy team", "type": "http" }, "http": { "method": "DELETE", "url": "https://console.vast.ai/api/v0/team/" }, "docs": "Deletes a team and all associated data including API keys, rights, invitations,\nmemberships and metadata. The team owner's master API key is converted to a normal client key.\n\nCLI Usage: vast-ai destroy team" }, { "info": { "name": "invite team member", "type": "http" }, "http": { "method": "POST", "url": "https://console.vast.ai/api/v0/team/invite/", "body": { "type": "json", "data": "{}" } }, "docs": "Sends an invitation email to the specified user to join the team with the given role.\n\nCLI Usage: vast-ai invite team-member --email EMAIL --role ROLE" }, { "info": { "name": "remove team member", "type": "http" }, "http": { "method": "DELETE", "url": "https://console.vast.ai/api/v0/team/members/:id", "params": [ { "name": "id", "value": "12345", "type": "path", "description": "User ID of the team member to remove" } ] }, "docs": "Removes a member from the team by revoking their team-related API keys and updating membership status.\nCannot remove the team owner.\n\nCLI Usage: vast-ai remove team-member ID\nExample: vast-ai remove team-member 12345" }, { "info": { "name": "remove team role", "type": "http" }, "http": { "method": "DELETE", "url": "https://console.vast.ai/api/v0/team/roles/:id", "params": [ { "name": "id", "value": "developer", "type": "path", "description": "Name of the role to remove" } ] }, "docs": "Removes a role from the team. Cannot remove the team owner role.\n\nCLI Usage: vast-ai remove team-role NAME\nExample: vast-ai remove team-role developer" }, { "info": { "name": "show team members", "type": "http" }, "http": { "method": "GET", "url": "https://console.vast.ai/api/v0/team/members/" }, "docs": "Retrieve a list of team members associated with the authenticated user's team.\n\nCLI Usage: vastai show team-members" }, { "info": { "name": "update team role", "type": "http" }, "http": { "method": "PUT", "url": "https://console.vast.ai/api/v0/team/roles/:id/", "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of the role to update." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing team role with new name and permissions." }, { "info": { "name": "show team roles", "type": "http" }, "http": { "method": "GET", "url": "https://console.vast.ai/api/v0/team/roles-full/" }, "docs": "Retrieve a list of all roles for a team, excluding the 'team_owner' role.\n\nCLI Usage: vastai show team-roles" } ] } ], "bundled": true }