Categories
Delete category
DELETE https://api.woowup.com/apiv3/categories
Delete a parent category and their childs
Request Body
Name
Type
Description
code
string
Category code
notify_to
string
email to receive the confirmation
{
"payload": {
"request_id": "xxxx"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}{
"payload": {
"errors": [
"Required properties missing: [\"code\"]"
]
},
"message": "bad request",
"code": "bad_request",
"time": "57ms"
}{
"payload": [],
"message": "forbidden: authentication failed",
"code": "forbidden",
"time": "7ms"
}{
"payload": {
"errors": [
"category not found"
]
},
"message": "category not found",
"code": "not_found",
"time": "114ms"
}{
"payload": [],
"message": "",
"code": "internal_error",
"time": "72ms"
}Example
curl -X DELETE \
https://api.woowup.com/apiv3/categories \
-H 'Accept: application/json' \
-H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
-d '{
"code": "abcd",
"notify_to": "test@email.com"
}'Response
{
"payload": {
"request_id": "XXXX"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}Delete categories (bulk)
DELETE https://api.woowup.com/apiv3/categories/bulk
Delete all categories
Request Body
Name
Type
Description
notify_to
string
email to receive the confirmation
{
"payload": {
"request_id": "xxxx"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}{
"payload": [],
"message": "forbidden: authentication failed",
"code": "forbidden",
"time": "7ms"
}{
"payload": [],
"message": "",
"code": "internal_error",
"time": "72ms"
}Example
curl -X DELETE \
https://api.woowup.com/apiv3/categories/bulk \
-H 'Accept: application/json' \
-H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
-d '{
"notify_to": "test@email.com"
}'Response
{
"payload": {
"request_id": "XXXX"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}Last updated
Was this helpful?