Update Tenant Account
Update a Tenant Account.
Tenant Admins may accept an invitation sent by an Infrastructure Provider by supplying tenantContactId.
Provider Admins may replace one or more capabilities through siteCapabilities to configure the Tenant Account default and overrides for specific Sites. When siteCapabilities is sent, it must be non-empty, include exactly one entry with empty or omitted siteIds, and must not repeat any siteId across entries. Requests containing both tenantContactId and siteCapabilities are rejected with 400.
Org must have a Tenant entity whose ID matches the tenantId of the Tenant Account object when accepting an invite. User must have authorization role with TENANT_ADMIN suffix to accept; PROVIDER_ADMIN suffix to update siteCapabilities. Tenant Admins can only update a Tenant Account that has Invited status.
Authentication
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
Request
Tenant Admin invite acceptance; must match the requesting user
Provider Admin replacement payload for Tenant capability configuration. Required to be non-empty when sent.
Server validation rules:
- must contain at least one entry
- must contain exactly one entry with omitted or empty siteIds
- every entry must specify at least one recognized capability
- a Site entry may specify only capabilities included in the account-default entry
- each capability included in the account-default entry is replaced independently; omitted capabilities remain unchanged
- must not repeat any siteId across entries
- every provided siteId must be a valid Site UUID
- every provided siteId must identify a Site owned by the Tenant Account’s Infrastructure Provider; otherwise the server rejects the request with 400
Response
Date/time when the Tenant Account was created
Date/time when the Tenant Account was last updated
Provider-scoped targetedInstanceCreation and crossTenantInterfaceCreation settings for this Tenant Account. targetedInstanceCreation replaces the deprecated tenant-level capabilities.targetedInstanceCreation attribute.
The response always begins with one account-default entry whose siteIds is empty. Each following entry contains sorted Site IDs whose effective value differs from the account default. A non-null Tenant Site override takes precedence over the account default; a missing override inherits that default.