Updates multiple article categories in a single request.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/article/category/batch
curl \
--request PUT 'https://wyzio.app/api-v1/article/category/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"name":"Office Supplies","position":1,"parentCategoryId":12345678,"organizationId":12345678,"children":[{}]}]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"name": "Office Supplies",
"position": 1,
"parentCategoryId": 12345678,
"organizationId": 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
}
]
}