Delete a section
DELETE/api/v2/catalog/sections/:section_id
Delete a section by its id
Requires all products within the section to be deleted first.
Request
Path Parameters
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the section
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the section
Possible values: non-empty
Name of the section
Possible values: non-empty
Slug of the section
Default value: 0
Used to order the item, order defaults to ascending.
{
"id": "u7m4f8ep5nfi",
"name": "Pizza",
"slug": "pizza",
"order": 1,
"created_at": "2024-08-13T11:41:41.375Z",
"updated_at": "2024-08-13T11:41:41.375Z"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
HTTP status code
Error message
errors
object[]
required
Possible values: non-empty
Path to the property with the error
errors
object[]
required
Possible values: non-empty
Error type
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"errors": [
{
"path": "business.id",
"errors": [
{
"type": "object_required_property",
"message": "Required property"
}
]
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}