Import tenants from CSV file
Import tenants from a CSV file using upsert semantics.
Expected CSV format:
- tenant_key (required): Unique tenant identifier
- tenant_name (optional): Human-readable name
- group_names (optional): Comma-separated list of group names
- Additional columns can be mapped to attributes via attribute_columns
Creates new tenants and updates existing ones with new name/groups. Groups are added additively (not replaced) and auto-created if needed.
Optionally processes attribute columns: values are validated against attributes.yaml, stored additively, and validation errors are non-fatal.
RLS: Filtered to current client (ClientRLSDB).
Raises: ValidationError: If CSV format is invalid (400) TenantCreationNotAllowedError: If tenancy type is NONE (400)
Query parameters
Headers
Response
Successful Response
Changes
Changed in 2 of the 11 revisions of this API.318
- ▲
response property
errorslist-of-types was widened by adding typesarrayto media typeapplication/jsonof response400response-property-list-of-types-widened
- ▲
response property
errorslist-of-types was widened by adding typesarrayto media typeapplication/jsonof response401response-property-list-of-types-widened
- ▲
response property
errorslist-of-types was widened by adding typesarrayto media typeapplication/jsonof response422response-property-list-of-types-widened
- ○
added the new optional
headerrequest parameterX-Kater-CLI-IDnew-optional-request-parameter
- ○
added the new optional
queryrequest parametersourcenew-optional-request-parameter
- ○
added the new optional request property
attribute_columnsnew-optional-request-property
- ○
added the optional property
attribute_errorsto the response with the200statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the optional property
detailfrom the response with the422statusresponse-optional-property-removed
- ○
added the optional property
errorsto the response with the422statusresponse-optional-property-added
- ○
added the required property
codeto the response with the422statusresponse-required-property-added
- ○
added the required property
messageto the response with the422statusresponse-required-property-added
- ○
added the required property
statusto the response with the422statusresponse-required-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●