Предметные инструменты · sale
Контекст полей интеграции профиля
sale_site_sale_buyer_profiles_m333_readЧтениеВозвращает ревизию и контекст выбранных полей интеграции профиля покупателя.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Показывает профиль, свойства и ревизию для последующей записи. Без profile_id подготавливает создание. Для копирования укажите target_user_id. Свой профиль доступен его владельцу; чужой — сотруднику с актуальными правами Sale и доступом к выбранному сайту. Служебные значения скрыты. Просмотр не предоставляет права на прикреплённые файлы.
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.
{
"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."
}
},
"required": [
"integration_fields",
"person_type_id",
"profile_id",
"site_id",
"user_id"
],
"additionalProperties": false
}