MCP Control
Документы · Изменение

Документы · Отправка

documents_workspace_send
Папки документов

Попробуйте три запроса

Подготовить
  1. Вы указываетеДокумент
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Документы / Отправка». Для изменения нужны документ, integrationId. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
documentId
Документ
integrationId
Параметр
integrationScope
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Документы / Отправка» с параметром integrationScope = company. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
integrationScope
company
channel
email
documentId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Документы / Отправка» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Send the reviewed document through its selected company or personal native connection, including the optional native invitation email/preview. Sends a real message. Keep requestId and inspect deliveries after uncertainty; queued is not delivered.

Параметры запроса
documentId
Native documentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
integrationId
Native integrationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
integrationScope
Native integrationScope value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты company, personal
recipient
Native recipient value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 254
channel
Native channel value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты email, sms, whatsapp, telegram, instagram, facebook_messenger
text
Native text value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 20000
subject
Native subject value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 200
contactId
Native contactId value; use the value and type returned by the corresponding service. необязательно · string
linkUrl
Native linkUrl value; use the value and type returned by the corresponding service. необязательно · string · до символов 500
includePreview
Native includePreview value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа documents_workspace_send
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native documentId value; use the value and type returned by the corresponding service."
    },
    "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."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expectedRevision value; use the value and type returned by the corresponding service."
    },
    "integrationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native integrationId value; use the value and type returned by the corresponding service."
    },
    "integrationScope": {
      "type": "string",
      "enum": [
        "company",
        "personal"
      ],
      "description": "Native integrationScope value; use the value and type returned by the corresponding service."
    },
    "recipient": {
      "type": "string",
      "minLength": 3,
      "maxLength": 254,
      "description": "Native recipient value; use the value and type returned by the corresponding service."
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "sms",
        "whatsapp",
        "telegram",
        "instagram",
        "facebook_messenger"
      ],
      "description": "Native channel value; use the value and type returned by the corresponding service."
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000,
      "description": "Native text value; use the value and type returned by the corresponding service."
    },
    "subject": {
      "type": "string",
      "maxLength": 200,
      "description": "Native subject value; use the value and type returned by the corresponding service."
    },
    "contactId": {
      "description": "Native contactId value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "linkUrl": {
      "description": "Native linkUrl value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 500,
      "format": "uri"
    },
    "includePreview": {
      "type": "boolean",
      "description": "Native includePreview value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "documentId",
    "requestId",
    "expectedRevision",
    "integrationId",
    "integrationScope",
    "recipient",
    "channel",
    "text",
    "subject",
    "includePreview"
  ],
  "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"
          }
        }
      ]
    }
  }
}