Обновить статус подкатегории
PATCH/v1/subcategory
Обновление статуса видимости подкатегории.
Request
- application/json
Body
The status to update for the category.
status booleanrequired
id integerrequired
Responses
- 200
- 400
- 401
- 403
- 500
Successful operation. Returns the updated subCategory.
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
name stringrequired
status booleanrequired
countProducts integerrequired
{
"id": 0,
"name": "string",
"status": true,
"countProducts": 0
}
Bad request. Invalid input or missing required fields.
Unauthorized. User is not authenticated.
Forbidden. User does not have permission to update category status.
Internal server error.
Loading...