Skip to main content
POST
Create items

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры пути

id
integer
обязательно

Тело

quantity
integer
обязательно
Требуемый диапазон: x >= 1
product
integer
обязательно
product_company
integer | null
product_price
integer | null

Ответ

201 - application/json
id
integer
обязательно
read-only
product_name
string
обязательно
read-only
quantity
integer
обязательно
Требуемый диапазон: x >= 1
created_at
string<date-time>
обязательно
read-only
updated_at
string<date-time>
обязательно
read-only
price
string<decimal>
обязательно
read-only
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
cart
integer
обязательно
read-only
product
integer
обязательно
product_company
integer | null
product_price
integer | null