Добавить товар
POST/v1/product
Добавление товара с указанными данными.
Request
- application/json
Body
Содержимое товара.
product stringrequired
Possible values: non-empty and <= 250 characters
subCategoryId numberrequired
Possible values: >= 1 and <= 1
Responses
- 200
- 400
- 401
- 403
- 500
Successful operation. Returns the created product.
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
product stringrequired
{
"id": 0,
"product": "string"
}
Bad request. Invalid input or missing required fields.
Unauthorized. User is not authenticated.
Forbidden. User does not have permission to create a product.
Internal server error.
Loading...