Create Tenant Account

View as Markdown
Create a Tenant Account. Org must have an Infrastructure Provider entity. User must have authorization role with `PROVIDER_ADMIN` suffix. The Infrastructure Provider is inferred from the caller's org; the deprecated `infrastructureProviderId` request body field is optional and, when provided, must match the org's Infrastructure Provider. Infrastructure Provider can create a Tenant Account by specifying the Tenant's UUID or Tenant's org name. This sets the Tenant Account status to "Invited". The Tenant can then view the account information and accept the account by updating the Tenant Account.

Authentication

AuthorizationBearer
``` export JWT_BEARER_TOKEN="<jwt-bearer-token>" # Example org name: "acme-inc export ORG_NAME=<org-name> # Use the JWT bearer token in your API request auth header: curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current ```

Path parameters

orgstringRequired
Name of the Org

Request

This endpoint expects an object.
tenantOrgstringRequiredformat: "^[A-Za-z0-9_-]+$">=1 character
Must be a valid Org name
infrastructureProviderIdstringOptionalformat: "uuid"Deprecated

Deprecated; inferred from the caller’s org Infrastructure Provider when omitted. When provided, the value must match the org’s Infrastructure Provider — mismatched values are rejected with 400.

Response

Created
idstringRead-onlyformat: "uuid"
Unique UUID v4 identifier for the Tenant Account
infrastructureProviderIdstringformat: "uuid"
ID of the Infrastructure Provider
infrastructureProviderOrgstring
Organization name of the Infrastructure Provider
tenantIdstring or nullformat: "uuid"
ID of the Tenant
tenantOrgstring or null
Org of the Tenant
tenantContactobject
Contact user for the Tenant
allocationCountinteger
Number of Allocations for the Tenant Account
statusenum
Status of the Tenant Account
statusHistorylist of objects
Chronological status history for the Tenant Account
createddatetimeRead-only

Date/time when the Tenant Account was created

updateddatetimeRead-only

Date/time when the Tenant Account was last updated

Errors

400
Bad Request Error
403
Forbidden Error