Компания и доступ · Изменение
Каталог · Исключения · Создание
catalog_exceptions_create
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Каталог / Исключения / Создание». Для изменения нужны изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- values
- Изменяемые поля
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
Выполни согласованное действие «Каталог / Исключения / Создание» с проверенными значениями. Покажи результат этой попытки.
- requestId
- Ключ операции
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Каталог / Исключения / Создание» по исходному ответу. Покажи ключ записи, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Идентификатор новой записи назначает сервер. Возьмите его из результата создания.
Описание разработчика
Create catalog exceptions with server-assigned identity. Validate related identifiers with their search actions first. The change is atomic and idempotent. Existing records are not replaced. After a lost or unrecognized response, use catalog_exceptions_get_create_result with the exact original arguments to check the saved result without repeating the change.
Параметры запроса
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- key
- Canonical business identifier. Company identity is always supplied by authentication. обязательно по схеме · object
- revision
- Current revision; pass it unchanged to update or delete. обязательно по схеме · string
- values
- Authorized native entity fields, with credentials and internal service data excluded. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"values": {
"type": "object",
"properties": {
"available": {
"description": "available in catalog exceptions. Supply only an intentional user-requested change; omitted fields are preserved.",
"type": [
"boolean",
"null"
]
},
"products": {
"description": "List of canonical identifiers from catalog_products_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
"anyOf": [
{
"maxItems": 500,
"type": "array",
"items": {
"type": "string",
"maxLength": 100000
}
},
{
"type": "null"
}
]
},
"categories": {
"description": "List of canonical identifiers from product_categories_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
"anyOf": [
{
"maxItems": 500,
"type": "array",
"items": {
"type": "string",
"maxLength": 100000
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"description": "Values for the new business entity, following the native schema. The server allocates the ID and company."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for this exact change. Use the same requestId and arguments for retries. Never create a new request ID to bypass a conflict or pending confirmation."
}
},
"required": [
"values",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"key": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 500000,
"description": "Canonical catalog exceptions identifier from catalog_exceptions_list. Copy the exact identifier; it is not a name or display number."
}
},
"required": [
"id"
],
"additionalProperties": false,
"description": "Canonical business identifier. Company identity is always supplied by authentication."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Current revision; pass it unchanged to update or delete."
},
"values": {
"type": "object",
"properties": {
"id": {
"description": "id in catalog exceptions.",
"anyOf": [
{
"type": "string",
"maxLength": 500000
},
{
"type": "null"
}
]
},
"company_id": {
"description": "company id in catalog exceptions.",
"anyOf": [
{
"type": "string",
"maxLength": 500000
},
{
"type": "null"
}
]
},
"available": {
"description": "available in catalog exceptions.",
"type": [
"boolean",
"null"
]
},
"products": {
"description": "List of canonical identifiers from catalog_products_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
"anyOf": [
{
"maxItems": 10000,
"type": "array",
"items": {
"type": "string",
"maxLength": 500000
}
},
{
"type": "null"
}
]
},
"categories": {
"description": "List of canonical identifiers from product_categories_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
"anyOf": [
{
"maxItems": 10000,
"type": "array",
"items": {
"type": "string",
"maxLength": 500000
}
},
{
"type": "null"
}
]
},
"created_at": {
"description": "created at in catalog exceptions. Use an ISO timestamp with Z or an explicit UTC offset.",
"anyOf": [
{
"type": "string",
"maxLength": 500000
},
{
"type": "null"
}
]
},
"updated_at": {
"description": "updated at in catalog exceptions. Use an ISO timestamp with Z or an explicit UTC offset.",
"anyOf": [
{
"type": "string",
"maxLength": 500000
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"description": "Authorized native entity fields, with credentials and internal service data excluded."
}
},
"required": [
"key",
"revision",
"values"
],
"additionalProperties": false
}