Update environment unified model mapping
/environment-unified-model-resource-method/{id}
Path Parameters
The ID of the override row to update.
3cb4223d-8e2f-4a55-9a3f-5f2c9d0a17bdRequest Body
The replacement override mapping.
Static body merged into the integration request.
object · 2 properties
Strategy-specific options (e.g. multipart field name, base64 wrapper key).
multipartbase64upload
Integration method to call.
object · 2 properties
Static query params merged into the integration request.
Object-form (v2) request body schema; values are partial JSON Schema entries.
Integration resource to call. May be a single name, an array of resource fragments, or a { expression, resources } object for dynamic dispatch.
object · 2 properties
JSONata expression (string) or object-form mapping. The object form is keyed by field name with values that may be JSONata strings, nested objects, or JsonSchemaObjectProperties.
arrayitem
Static value returned for this method without making an HTTP call.
Move the override to a different integration slug.
apolloMove the override to a different unified method.
listMove the override to a different unified resource.
contactsThe row's current version. Required to avoid clobbering a concurrent write.
2Response Body
The override mapping, deep-merged on top of the base unified_model_resource_method config for the same (resource, integration, method) triple.
Static body merged into the integration request.
object · 2 properties
Strategy-specific options (e.g. multipart field name, base64 wrapper key).
multipartbase64upload
Integration method to call.
object · 2 properties
Static query params merged into the integration request.
Object-form (v2) request body schema; values are partial JSON Schema entries.
Integration resource to call. May be a single name, an array of resource fragments, or a { expression, resources } object for dynamic dispatch.
object · 2 properties
JSONata expression (string) or object-form mapping. The object form is keyed by field name with values that may be JSONata strings, nested objects, or JsonSchemaObjectProperties.
arrayitem
Static value returned for this method without making an HTTP call.
2024-01-10T10:00:00.000ZThe environment_unified_model record (environment + unified model pair) this override belongs to.
4af1e38e-1d84-4bea-8ef4-2d705aec43bcThe ID of the environment resource-method override row.
3cb4223d-8e2f-4a55-9a3f-5f2c9d0a17bdThe integration slug this override serves (e.g. apollo).
apolloThe unified method this override serves (list, get, create, update, delete, or a custom method name).
listThe unified resource this override serves (e.g. contacts).
contacts2024-01-11T12:30:00.000ZOptimistic-concurrency version. Send the current value in a PATCH body; every write increments it.
2curl -X PATCH 'https://api.truto.one/environment-unified-model-resource-method/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"resource_name": "contacts",
"integration_name": "apollo",
"method_name": "list",
"config": {},
"version": 2
}'const body = {
"resource_name": "contacts",
"integration_name": "apollo",
"method_name": "list",
"config": {},
"version": 2
};
const response = await fetch('https://api.truto.one/environment-unified-model-resource-method/{id}', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/environment-unified-model-resource-method/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"resource_name": "contacts",
"integration_name": "apollo",
"method_name": "list",
"config": {},
"version": 2
}
response = requests.patch(url, headers=headers, params=params, json=payload)
print(response.json())