Обновить статус категории
PATCH/v1/category
Обновить статус категории.
Request
- application/json
Body
Обновляемый статус категории.
status booleanrequired
Responses
- 200
- 400
- 401
- 403
- 500
Successful operation. Returns the updated category.
- 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...