Изменить кастомный атрибут продавца (идемпотентный)

POST /v1/attributes/custom/update

POST/v1/attributes/custom/update

Тело запроса

request_key
[ "string", "null" ]
Ключ идемпотентности (опц.)
attribute_id
string
required
ID атрибута для изменения
name
[ "string", "null" ]
Новое название (опц.)
description
[ "string", "null" ]
Новое описание (опц.)
type
Новый тип (опц.)
unit
Новая единица (опц.)
max_count
[ "integer", "null" ]
max_length
[ "integer", "null" ]
values
[ "array", "null" ]
Новый справочник значений (опц., полная замена). Без id - ValueInput.
Показать свойства
Свойства не описаны

Успешный ответ

200Результат
application/json
object
request_key
[ "string", "null" ]
attribute_id
string
required
updated_at
string
required
idempotent
[ "boolean", "null" ]
error
POST/v1/attributes/custom/update
1curl https://api.omninet.ru/v1/attributes/custom/update \2  --request POST \3  --header 'Content-Type: application/json' \4  --data '{5  "request_key": null,6  "attribute_id": "string",7  "name": null,8  "description": null,9  "type": null,10  "unit": null,11  "max_count": null,12  "max_length": null,13  "values": [14    {15      "code": "red",16      "name": "красный",17      "slug": "red",18      "rgb": null,19      "hex": "#FF0000",20      "locales": [21        {22          "lang": "ru",23          "name": "красный"24        }25      ],26      "sort_order": null27    }28  ]29}'
{
  "request_key": null,
  "attribute_id": "string",
  "updated_at": "string",
  "idempotent": null,
  "error": null
}

Результат