Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/department/tree
curl \
--request POST 'https://wyzio.app/api-v1/department/tree' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"id":42,"parentId":42,"name":"string","position":42,"children":[{}],"isDeleted":true}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"id": 42,
"parentId": 42,
"name": "string",
"position": 42,
"children": [
{}
],
"isDeleted": true
}
]
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}