Перейти к основному содержанию
PATCH
/
v1
/
plus
/
manage
/
products
/
{id}
/
companies
/
{company_id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/plus/manage/products/{id}/companies/{company_id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "count": -1,
  "published": true,
  "extra": "<unknown>",
  "company": 123
}
'
{
  "id": 123,
  "price": "<string>",
  "company": 123,
  "count": -1,
  "published": true,
  "extra": "<unknown>"
}

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

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

Тело

count
integer
Требуемый диапазон: -2147483648 <= x <= 2147483647
published
boolean
extra
any
company
integer

Ответ

200 - application/json
id
integer
обязательно
price
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
company
integer
обязательно
count
integer
Требуемый диапазон: -2147483648 <= x <= 2147483647
published
boolean
extra
any