API Reference: Tenants
API reference for tenant management and user access control endpoints.
Organizations group multiple tenants together under a single entity.
Retrieve information about the organization a tenant belongs to.
Endpoint: GET /tenant/{tenantId}/organization
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of the tenant |
Response:
{
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"displayName": "Acme Corporation",
"createdAt": "2023-06-01T00:00:00Z"
}
Retrieve aggregated statistics for the entire organization.
Endpoint: GET /tenant/{tenantId}/organization/statistics
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of the tenant |
Response:
{
"tenantCount": 5,
"totalProcessCount": 42,
"totalDatasetCount": 18,
"totalUserCount": 25,
"totalStorageUsedBytes": 5368709120
}
Retrieve all tenants in the organization.
Endpoint: GET /tenant/{tenantId}/organization/tenants
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of the tenant |
Response:
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"displayName": "Sales Department",
"createdAt": "2024-01-01T00:00:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-def4-567890123456",
"displayName": "Operations",
"createdAt": "2024-02-15T00:00:00Z"
}
]
Create a new tenant in the organization.
Endpoint: POST /tenant/{tenantId}/organization/tenants
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of an existing tenant in the organization |
Request Body:
{
"shortName": "sales-team",
"displayName": "Sales Team",
"description": "Tenant for the sales department"
}
| Field | Type | Required | Description |
|---|---|---|---|
| shortName | string | Yes | URL-friendly identifier (lowercase, hyphens allowed) |
| displayName | string | No | Human-readable name for the tenant |
| description | string | No | Description of the tenant |
Response: Returns the created tenant object.
Delete a tenant from the organization.
Endpoint: DELETE /tenant/{tenantId}/organization/tenants/{targetTenantId}
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of an existing tenant in the organization |
| targetTenantId | string | path | Yes | The unique identifier of the tenant to delete |
Response:
{
"success": true
}
warning
Deleting a tenant will permanently remove all its processes, datasets, and user assignments. This action cannot be undone. You cannot delete the tenant you are using to authenticate.
Retrieve all users in the organization.
Endpoint: GET /tenant/{tenantId}/organization/users
Parameters:
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| tenantId | string | path | Yes | The unique identifier of the tenant |
Response:
[
{
"id": "e5f6a7b8-c9d0-1234-efa5-678901234567",
"email": "admin@example.com",
"firstName": "Jane",
"lastName": "Smith",
"createdAt": "2023-06-01T00:00:00Z",
"lastLoginAt": "2024-03-01T10:00:00Z",
"organizationId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"isActiveInOrganization": true,
"isAdminInOrganization": true
}
]
Update a user’s permissions within the organization.
Endpoint: PUT /tenant/{tenantId}/organization/users
Request Body:
{
"userId": "e5f6a7b8-c9d0-1234-efa5-678901234567",
"organizationId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"isActiveInOrganization": true,
"isAdminInOrganization": true
}
| Field | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | The unique identifier of the user |
| organizationId | string | Yes | The unique identifier of the organization |
| isActiveInOrganization | boolean | No | Whether the user is active in the organization |
| isAdminInOrganization | boolean | No | Whether the user has admin privileges in the organization |
Response:
{
"message": "User organization settings updated."
}
Remove a user from the organization entirely.
Endpoint: DELETE /tenant/{tenantId}/organization/users
Request Body:
{
"userId": "e5f6a7b8-c9d0-1234-efa5-678901234567",
"organizationId": "c3d4e5f6-a7b8-9012-cdef-345678901234"
}
| Field | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | The unique identifier of the user to remove |
| organizationId | string | Yes | The unique identifier of the organization |
Response:
{
"message": "User removed from organization."
}
warning
Removing a user from the organization will revoke their access to all tenants within the organization.