Tenant Units
Manage tenant units, including listing all units, creating a new one, retrieving a specific unit, and getting the default tenant unit.
Query parameters
pageintegerOptionalExample:
default to 1 if not passing this query
1
pageSizeintegerOptionalExample:
default to 10 if not passing this query
10
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Responses
200Success
application/json
get
GET /admin/api/v1/tenantUnits HTTP/1.1
Host: api.workfx.ai
Accept: */*
200Success
{
"tenantUnits": [
{
"id": "text",
"tenantId": "text",
"name": "text",
"createdTime": "text",
"updatedTime": "text",
"status": "active",
"parentId": "text",
"level": 0,
"default": true
}
],
"pagination": {
"totalCount": 1,
"currentPage": 1,
"pageSize": 1,
"totalPages": 1
}
}
Query parameters
createDefaultAgentbooleanOptionalExample:
False
createDefaultDatasetbooleanOptionalExample:
False
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Body
idstringOptional
namestringRequired
parentIdstringOptional
defaultbooleanOptional
Responses
200Success
application/json
post
POST /admin/api/v1/tenantUnits HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"name": "rdc-poc-unit-2",
"status": "active",
"default": "true",
"level": "0"
}
200Success
{
"id": "text",
"tenantId": "text",
"name": "text",
"createdTime": "text",
"updatedTime": "text",
"status": "active",
"parentId": "text",
"level": 0,
"default": true
}
Path parameters
tenantUnitIdstringRequiredExample:
{{tenantUnitId}}
Query parameters
tenantIdstringRequiredExample:
{{tenantId}}
Header parameters
X-Api-KeystringOptionalExample:
the API Key
{{apiKey}}
Responses
200Success
application/json
get
GET /admin/api/v1/tenantUnits/{tenantUnitId} HTTP/1.1
Host: api.workfx.ai
Accept: */*
200Success
{
"id": "text",
"tenantId": "text",
"name": "text",
"createdTime": "text",
"updatedTime": "text",
"status": "active",
"parentId": "text",
"level": 0,
"default": true
}
Last updated
Was this helpful?