Updates multiple report template lines. Returns 200 on success, or 400 if any entry fails validation.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/report-template/batch
curl \
--request PUT 'https://wyzio.app/api-v1/report-template/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"reportType":"BALANCE_SHEET","parentId":12345678,"position":1,"localizations":{"id":12345678,"en":"English translation","fr":"Traduction française","de":"Deutsche Übersetzung","it":"Traduzione in italiano"},"lineType":"ACCOUNTS","lineSign":"POSITIVE","isPercentage":false,"organizationId":12345678,"content":[{"lineId":12345678,"entityId":12345678}],"children":[{}]}]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"reportType": "BALANCE_SHEET",
"parentId": 12345678,
"position": 1,
"localizations": {
"id": 12345678,
"en": "English translation",
"fr": "Traduction française",
"de": "Deutsche Übersetzung",
"it": "Traduzione in italiano"
},
"lineType": "ACCOUNTS",
"lineSign": "POSITIVE",
"isPercentage": false,
"organizationId": 12345678,
"content": [
{
"lineId": 12345678,
"entityId": 12345678
}
],
"children": [
{}
]
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}