Create a tenant
Create a tenant that the account of the key owns.
POST /v1/tenants
curl -X POST "https://api.shako.dev/v1/tenants" \
-H "Authorization: Bearer $SHAKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"acme"}'201 (excerpt)
{
"name": "acme"
}Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: owner, with a key for the account (--account).
Request body
namestringrequired- The new tenant's name: a-z, 0-9 and single hyphens, at most 20 characters. It is in the SSH names and the URLs of its VMs.
Response
201 with the new tenant object.
Behavior
Only the first tenant of an account gets the free credit, one time.
The errors. All the endpoints of Tenants.