Admin only. Writes the GLOBAL tree: lines, nesting, order, qname, position_reference, translations and calculation membership. Affects every organization, which is why it is a separate endpoint from the account mapping rather than a flag on one payload.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Path parameters
-
Values are
BALANCE_SHEET,PL,CASH_FLOW,RATIOS,END_OF_YEAR_ASSET,END_OF_YEAR_LIABILITY, orEND_OF_YEAR_INCOME_STATEMENT.
PUT
/api-v1/e-bilan-report/structure/{reportType}
curl \
--request PUT 'https://wyzio.app/api-v1/e-bilan-report/structure/{reportType}' \
--header "Content-Type: application/json" \
--data '[{"id":42,"parentId":42,"position":42,"qname":"string","positionReference":"string","reportType":"BALANCE_SHEET","lineType":"NONE","lineSign":"ASSETS","localizations":{"id":42,"en":"string","fr":"string","de":"string","it":"string"},"accountIds":[42],"memberIds":[42],"children":[{}]}]'
Request examples
# Headers
# Payload
[
{
"id": 42,
"parentId": 42,
"position": 42,
"qname": "string",
"positionReference": "string",
"reportType": "BALANCE_SHEET",
"lineType": "NONE",
"lineSign": "ASSETS",
"localizations": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"accountIds": [
42
],
"memberIds": [
42
],
"children": [
{}
]
}
]