Skip to main content
PATCH
Patch groups

Авторизации

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
обязательно

Тело

name
string | null
Maximum string length: 512
comment
string | null
Maximum string length: 512
category
integer | null
unique_id
string | null
Maximum string length: 255
barcode
string | null
Maximum string length: 255
image
string<uri> | null
extra
any
published
boolean
type
enum<integer>
  • 0 - Аренда
  • 1 - Продажа
Доступные опции:
0,
1
Требуемый диапазон: 0 <= x <= 32767
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount
integer | null
tarif_form
object[]
inventory_form
object
unit_type
enum<string>
  • litre - Литр
  • kg - Килограмм
  • g - Грамм
  • ml - Миллилитр
  • piece - Штука
  • m3 - Кубический метр
Доступные опции:
litre,
kg,
g,
ml,
piece,
m3
unit_price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_count
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_sum
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
points
integer[]
Требуемый диапазон: -2147483648 <= x <= 2147483647
lifetime
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647

Ответ

200 - application/json
id
integer
обязательно
read-only
name
string | null
Maximum string length: 512
comment
string | null
Maximum string length: 512
category
integer | null
unique_id
string | null
Maximum string length: 255
barcode
string | null
Maximum string length: 255
image
string<uri> | null
extra
any
published
boolean
type
enum<integer>
  • 0 - Аренда
  • 1 - Продажа
Доступные опции:
0,
1
Требуемый диапазон: 0 <= x <= 32767
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount
integer | null
tarif_form
object[]
inventory_form
object
unit_type
enum<string>
  • litre - Литр
  • kg - Килограмм
  • g - Грамм
  • ml - Миллилитр
  • piece - Штука
  • m3 - Кубический метр
Доступные опции:
litre,
kg,
g,
ml,
piece,
m3
unit_price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_count
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_sum
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
points
integer[]
Требуемый диапазон: -2147483648 <= x <= 2147483647
lifetime
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647