List environment unified models
/environment-unified-model
Query Parameters
Filter by base unified model ID.
7c5c8cc2-e68e-4af8-84d1-4ceea1489338Filter by environment unified model ID.
7c5c8cc2-e68e-4af8-84d1-4ceea1489338Filter by base unified model name.
Response Body
100bXljdXJzb3I=Timestamp when this record was created.
2024-01-10T10:00:00.000ZThe ID of the environment where this unified model is installed.
1ba1f401-7183-47c5-9e39-e8e257e3c795The ID of the environment-unified-model record.
4af1e38e-1d84-4bea-8ef4-2d705aec43bcAn optional object containing environment-level overrides for the unified model. Deep-merged on top of the base unified model. See EnvironmentUnifiedModelOverride for the typed shape.
{
"resources": {
"users": {
"description": "Overrides the user resource description for this environment.",
"integration_mapping": {
"my_integration": {
"list": {
"path_mapping": "/v2/users"
}
}
}
}
}
}4 properties
Per-integration documentation overrides.
Resource-level overrides keyed by resource name.
Per-integration extra OAuth scopes appended to the base unified-model scopes.
Per-integration JSONata expressions that route inbound webhooks to unified-model resources.
15 properties
The category of the unified model.
hrisThe date and time when the unified model was created.
2021-08-10T10:00:00.000ZA brief description of what this unified model represents.
This model provides a user directory interface for various HRIS integrations.Per-resource documentation (pricing plan / scopes / instructions).
The ID of the unified model.
7c5c8cc2-e68e-4af8-84d1-4ceea1489338A list of environment IDs where this unified model is installed.
The name of the unified model.
user-directoryMap of resource name (e.g. users, contacts) → resource definition (UnifiedModelResource).
{
"users": {
"description": "A resource representing user objects",
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"integration_mapping": {
"my_integration": {
"list": {
"resource": "/users",
"method": "get"
}
}
}
}
}Per-resource OAuth/permission scopes required to call its methods.
The sharing policy of the unified model.
denyallowaskdeny
10 properties
Whether the team allows impersonation.
falseThe date and time when the team was created.
2021-08-10T10:00:00.000ZThe domain of the team.
example.comThe ID of the team.
05daecaf-4365-42e8-8370-8127de5dd717Whether the team is verified or not.
trueWhether the team is white-labeled or not.
falseThe URL of the team's logo.
https://example.com/logo.pngThe name of the team.
My Awesome TeamA link to the team's Terms of Service, if available.
https://example.com/tosThe date and time when the team was last updated.
2021-08-10T10:00:00.000ZThe ID of the team that owns this unified model.
05daecaf-4365-42e8-8370-8127de5dd717The date and time when the unified model was last updated.
2021-08-10T10:30:00.000ZThe current version of the unified model.
3Per-resource webhook routing expression (JSONata that decides whether an inbound webhook should be delivered to this resource).
The ID of the unified model being installed or overridden.
7c5c8cc2-e68e-4af8-84d1-4ceea1489338Timestamp when this record was last updated.
2024-01-11T12:30:00.000Zcurl -X GET 'https://api.truto.one/environment-unified-model' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/environment-unified-model', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/environment-unified-model"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())import Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
for await (const item of truto.environmentUnifiedModel.list()) {
console.log(item);
}import asyncio
from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<your_api_token>")
async def main():
async for item in truto_api.environment_unified_models.list():
print(item)
asyncio.run(main())