Save workbook mappings
curl --request PUT \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"mappings": [
{
"modelMappingId": "<string>",
"mappingVersion": 123,
"target": {
"targetRef": "<string>",
"workbookInstallationId": "<string>",
"sheetId": "<string>",
"sheetName": "<string>",
"address": "<string>",
"namedItem": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"fallbackAddress": "<string>",
"structuralHash": "<string>"
},
"concept": "<string>",
"selectorArgs": {},
"semanticTarget": "<string>",
"periodSelector": {},
"dimensions": {},
"valueOrFormulaPreconditionHash": "<string>",
"unit": "<string>",
"currency": "<string>",
"lastAcceptedEvidenceSnapshotId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings"
payload = { "mappings": [
{
"modelMappingId": "<string>",
"mappingVersion": 123,
"target": {
"targetRef": "<string>",
"workbookInstallationId": "<string>",
"sheetId": "<string>",
"sheetName": "<string>",
"address": "<string>",
"namedItem": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"fallbackAddress": "<string>",
"structuralHash": "<string>"
},
"concept": "<string>",
"selectorArgs": {},
"semanticTarget": "<string>",
"periodSelector": {},
"dimensions": {},
"valueOrFormulaPreconditionHash": "<string>",
"unit": "<string>",
"currency": "<string>",
"lastAcceptedEvidenceSnapshotId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mappings: [
{
modelMappingId: '<string>',
mappingVersion: 123,
target: {
targetRef: '<string>',
workbookInstallationId: '<string>',
sheetId: '<string>',
sheetName: '<string>',
address: '<string>',
namedItem: '<string>',
tableName: '<string>',
columnName: '<string>',
fallbackAddress: '<string>',
structuralHash: '<string>'
},
concept: '<string>',
selectorArgs: {},
semanticTarget: '<string>',
periodSelector: {},
dimensions: {},
valueOrFormulaPreconditionHash: '<string>',
unit: '<string>',
currency: '<string>',
lastAcceptedEvidenceSnapshotId: '<string>',
disabledAt: '2023-11-07T05:31:56Z',
createdAt: '2023-11-07T05:31:56Z',
updatedAt: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "model_mapping_list",
"mappings": [],
"requestId": "req_example"
}Workbooks
Save workbook mappings
Save append-only workbook mapping versions for audited filing-to-model refreshes.
PUT
/
v1
/
workbook-installations
/
{workbook_installation_id}
/
mappings
Save workbook mappings
curl --request PUT \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"mappings": [
{
"modelMappingId": "<string>",
"mappingVersion": 123,
"target": {
"targetRef": "<string>",
"workbookInstallationId": "<string>",
"sheetId": "<string>",
"sheetName": "<string>",
"address": "<string>",
"namedItem": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"fallbackAddress": "<string>",
"structuralHash": "<string>"
},
"concept": "<string>",
"selectorArgs": {},
"semanticTarget": "<string>",
"periodSelector": {},
"dimensions": {},
"valueOrFormulaPreconditionHash": "<string>",
"unit": "<string>",
"currency": "<string>",
"lastAcceptedEvidenceSnapshotId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings"
payload = { "mappings": [
{
"modelMappingId": "<string>",
"mappingVersion": 123,
"target": {
"targetRef": "<string>",
"workbookInstallationId": "<string>",
"sheetId": "<string>",
"sheetName": "<string>",
"address": "<string>",
"namedItem": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"fallbackAddress": "<string>",
"structuralHash": "<string>"
},
"concept": "<string>",
"selectorArgs": {},
"semanticTarget": "<string>",
"periodSelector": {},
"dimensions": {},
"valueOrFormulaPreconditionHash": "<string>",
"unit": "<string>",
"currency": "<string>",
"lastAcceptedEvidenceSnapshotId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mappings: [
{
modelMappingId: '<string>',
mappingVersion: 123,
target: {
targetRef: '<string>',
workbookInstallationId: '<string>',
sheetId: '<string>',
sheetName: '<string>',
address: '<string>',
namedItem: '<string>',
tableName: '<string>',
columnName: '<string>',
fallbackAddress: '<string>',
structuralHash: '<string>'
},
concept: '<string>',
selectorArgs: {},
semanticTarget: '<string>',
periodSelector: {},
dimensions: {},
valueOrFormulaPreconditionHash: '<string>',
unit: '<string>',
currency: '<string>',
lastAcceptedEvidenceSnapshotId: '<string>',
disabledAt: '2023-11-07T05:31:56Z',
createdAt: '2023-11-07T05:31:56Z',
updatedAt: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "model_mapping_list",
"mappings": [],
"requestId": "req_example"
}