CRM · Изменение
CRM · Материалы · Создание
crm_workspace_material_create
Попробуйте три запроса
Подготовить
- Вы указываетеPipelineid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «CRM / Материалы / Создание». Для изменения нужны pipelineId, изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- pipelineId
- Параметр
- values
- Изменяемые поля
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «CRM / Материалы / Создание» с параметром values.name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- values.name
- Осенняя коллекция
- values.type
- article
- values.scope
- staff
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «CRM / Материалы / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Create a native training article/template/video/document link in the reviewed pipeline. Uses native multilingual storage and visibility; sends nothing.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- pipelineId
- Native pipelineId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
},
"pipelineId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native pipelineId value; use the value and type returned by the corresponding service."
},
"expectedRevision": {
"type": "string",
"pattern": "^\\d+:\\d+$",
"description": "Native expectedRevision value; use the value and type returned by the corresponding service."
},
"values": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Native name value; use the value and type returned by the corresponding service."
},
"body": {
"default": "",
"description": "Native body value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 10000
},
"url": {
"default": "",
"description": "Native url value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"type": {
"default": "article",
"description": "Native type value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"article",
"template",
"video",
"document"
]
},
"category": {
"default": "Обучение",
"description": "Native category value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 80
},
"scope": {
"default": "staff",
"description": "Native scope value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"staff",
"client"
]
},
"stages": {
"default": [],
"description": "Native stages value; use the value and type returned by the corresponding service.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
}
}
},
"required": [
"name",
"body",
"url",
"type",
"category",
"scope",
"stages"
],
"additionalProperties": false,
"description": "Native values value; use the value and type returned by the corresponding service."
}
},
"required": [
"requestId",
"pipelineId",
"expectedRevision",
"values"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}