Use this endpoint to securely register a tenant to Upsolve and pass metadata relating to the tenant. This metadata payload will be used to secure data when the user accesses an Upsolve dashboard.
apiKey MUST be supplied within the request body instead of query
POST /v1/api/tenant/register-tenant Request body
Upsolve API key, generated in the Deploy tab of the Upsolve Hub.
1"up_embed_************"
Display name for this user. This will appear in the Upsolve Hub.
"Google Inc"
The columns to split tenants on, and their tenant-specific values
{
"company_id": "company-google",
"company_class": "tech"
}[Optional] The ID of the org the API key is being used with. Only needed if the API key is being used for an organization other than the org that generated it.
"do-not-use"
TODO
[Deprecated] Unique key to identify this tenant. Ideally something complex like a UUID.
"org_1234-abcd-5678-efgh"
The schema to split tenants on
"customer_1"
Permissions for tenant editing capabilities
Optional connection ID override configuration
custom metadata of a tenant
{ "organisation": "organisation x" }Expiration time of the token
"1h"
POST /v1/api/tenant/register-tenant Positive response
"success"{
"message": "Tenant Google Inc registered.",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InBhcmVudE9yZ0lkIjoiYWJkZTZmMjQtYWYwZi00Zjg3LWI4NzEtNzk0NGIyYzhjM2IzIiwiZGlzcGxheU5hbWUiOiJEZW1vIChBZG1pbikiLCJwYXlsb2FkIjp7fX0sImlhdCI6MTcwOTI2NTcyOSwiZXhwIjoxNzA5MjY5MzI5fQ.nfMwGbPe7zwCwlky079PVjA-ox0G2OtTuFo_0MXoLCE"
}