Добавить товары
POST/v1/products
Добавление новых товаров в указанную подкатегорию.
Request
- application/json
Body
Массив из товаров.
products string[]required
subCategoryId numberrequired
Possible values: >= 1 and <= 1
Responses
- 200
- 400
- 401
- 403
- 500
Successful operation. Returns the created products.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
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 products.
Internal server error.
Loading...