Предметные инструменты · sale
Изменить поля интеграции профиля
sale_site_sale_buyer_profiles_m224_writeИзменениеИзменяет XML ID или версию 1С в профиле покупателя по ревизии и подтверждению.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Изменяет название существующего профиля после проверки владельца, типа плательщика и ревизии. Перенос между покупателями или типами плательщика не выполняется.
site_id- строка · обязательный параметр
person_type_id- целое число · обязательный параметр
user_id- целое число · обязательный параметр
profile_id- целое число · обязательный параметр
integration_fields- объект · обязательный параметр
Explicit integration mode, exclusive with name and other context modes. Requires global Sale W, including for own profiles. Update requires request_id and always calls the original setter, including timestamp assignment for identical values.
request_id- строка · обязательный параметр
expected_revision- строка · обязательный параметр
Ревизия из подготовки изменения; устаревшая ревизия отклоняется до записи.
confirm- логическое значение · обязательный параметр
Перед изменением передайте true.
{
"type": "object",
"properties": {
"site_id": {
"type": "string",
"pattern": "^[A-Za-z0-9]{2}$"
},
"person_type_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"profile_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"integration_fields": {
"type": "object",
"minProperties": 1,
"maxProperties": 2,
"additionalProperties": false,
"properties": {
"xml_id": {
"type": [
"string",
"null"
],
"maxLength": 50,
"description": "External integration identifier. Omission retains it; empty string is distinct; null clears to SQL NULL."
},
"version_1c": {
"type": [
"string",
"null"
],
"maxLength": 15,
"description": "1C integration version. Omission retains it; empty string is distinct; null clears to SQL NULL."
}
},
"description": "Explicit integration mode, exclusive with name and other context modes. Requires global Sale W, including for own profiles. Update requires request_id and always calls the original setter, including timestamp assignment for identical values."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"expected_revision": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "Ревизия из подготовки изменения; устаревшая ревизия отклоняется до записи."
},
"confirm": {
"type": "boolean",
"description": "Перед изменением передайте true.",
"enum": [
true
]
}
},
"required": [
"confirm",
"expected_revision",
"integration_fields",
"person_type_id",
"profile_id",
"request_id",
"site_id",
"user_id"
],
"additionalProperties": false
}