Включить/выключить кастомный атрибут продавца (идемпотентный)
POST /v1/attributes/custom/toggle
POST
/v1/attributes/custom/toggleТело запроса
request_key
[
"string",
"null"
]
Ключ идемпотентности (опц.)
attribute_id
string
required ID атрибута
enabled
boolean
required true - включить, false - выключить
Успешный ответ
200Результат application/json
object
request_key
[
"string",
"null"
]
attribute_id
string
required enabled
boolean
required Новое состояние
updated_at
string
required idempotent
[
"boolean",
"null"
]
error
POST/v1/attributes/custom/toggle
1curl https://api.omninet.ru/v1/attributes/custom/toggle \2 --request POST \3 --header 'Content-Type: application/json' \4 --data '{5 "request_key": null,6 "attribute_id": "string",7 "enabled": true8}'{
"request_key": null,
"attribute_id": "string",
"enabled": true,
"updated_at": "string",
"idempotent": null,
"error": null
}Результат