Get unified model version
/unified-model/{id}/versions/{version}
One version of the unified model, with its content in data: the tracked fields as they were at that version, with secrets removed.
Path Parameters
The object's ID.
Response Body
The user's ID, or for api_token the token's ID.
Jane Doe via API token "CI"How the author authenticated, for example session or api_token.
The object's tracked fields as they were at this version, with secrets removed.
The change note. In a listing, a note too long to store with the version's metadata is a shortened preview ending in …, and message_truncated is true; getting that one version returns it whole.
True when message is a shortened preview of a longer note.
save and restore were written by a save. baseline is the state found before the first recorded save. untracked is a state found before a save that no recorded version matched: the object was changed without recording a version. legacy was stored before version history existed. The last three have no author.
saverestorebaselineuntrackedlegacy
Errors
| Status | Description |
|---|---|
400 | A version that is not a positive integer. |
404 | No such unified model or version, or the caller cannot edit the unified model. |
curl -X GET 'https://api.truto.one/unified-model/{id}/versions/{version}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/unified-model/{id}/versions/{version}', {
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/unified-model/{id}/versions/{version}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())