v1 · OpenAPI 3.1Dashboard

Die API-Referenz ist auf Englisch.

Dashboard

Create a tenant

POST/v1/me/tenants

Self-serve: the signed-in person becomes the new tenant's owner. A person can own at most 5 tenants (422 tenant_limit).

Authentifizierung
Dashboard session

Body application/json

  • namestringerforderlich

Antworten

  • 201Createdobject

    Created; the caller is its owner

    • idstring

      Beispiel: ten_8f2c91a7

    • namestring

    • role"owner"

  • 400Bad RequestError

    Invalid request

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 422Unprocessable ContentError

    tenant_limit: the person already owns 5 tenants.

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject