Перейти к основному содержанию
PUT
/
v1
/
crm
/
inventories
/
sets
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/inventories/sets/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "unique_id": "<string>",
  "image": "<string>",
  "category": 123,
  "price": "<string>",
  "discount": 123,
  "static": true,
  "extra": "<unknown>",
  "published": true
}
'
{
  "id": 123,
  "name": "<string>",
  "status": 123,
  "prices": [
    {
      "name": "<string>",
      "period_id": 123,
      "price": "<string>",
      "id": 123,
      "order": 123
    }
  ],
  "items": [
    {
      "count": 123,
      "group_id": 123,
      "group_name": "<string>",
      "group_unique_id": "<string>",
      "group_category": 123,
      "group_image": "<string>",
      "inventories_count": 0,
      "inventories_free": 0,
      "id": 123,
      "alternative": 123,
      "required": true
    }
  ],
  "deleted": true,
  "unique_id": "<string>",
  "image": "<string>",
  "category": 123,
  "price": "<string>",
  "discount": 123,
  "static": true,
  "extra": "<unknown>",
  "published": true
}

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

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

Тело

name
string
обязательно
Maximum string length: 255
unique_id
string | null
Maximum string length: 255
image
string<uri> | null
category
integer | null
price
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount
integer | null
static
boolean
extra
any
published
boolean

Ответ

200 - application/json
id
integer
обязательно
name
string
обязательно
Maximum string length: 255
status
integer
обязательно
prices
object[]
обязательно
items
object[]
обязательно
deleted
boolean
обязательно
unique_id
string | null
Maximum string length: 255
image
string<uri> | null
category
integer | null
price
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount
integer | null
static
boolean
extra
any
published
boolean