MCP Control
Коммуникации · Изменение

Социальные сети · Чаты · Черновики · Изменение

social_workspace_chat_draft_edit
Контактные карточки и телефон

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

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

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

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

Edit an existing native outbound draft and its selected owned attachments at the exact revision. Does not send. sourceIndex retains one existing draft attachment.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
conversationId
Native conversationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
messageId
Native messageId value; use the value and type returned by the corresponding service. обязательно по схеме · string
revision
Текущая версия выбранной записи. обязательно по схеме · string
text
Native text value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 50000
media
Native media value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 20
replyToMessageId
Native replyToMessageId value; use the value and type returned by the corresponding service. необязательно · string / null
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа social_workspace_chat_draft_edit
Вход · 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."
    },
    "conversationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native conversationId value; use the value and type returned by the corresponding service."
    },
    "messageId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native messageId value; use the value and type returned by the corresponding service."
    },
    "revision": {
      "type": "string",
      "pattern": "^\\d+:\\d+$",
      "description": "Native revision value; use the value and type returned by the corresponding service."
    },
    "text": {
      "type": "string",
      "maxLength": 50000,
      "description": "Native text value; use the value and type returned by the corresponding service."
    },
    "media": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "sourceIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 19,
                "description": "Native sourceIndex value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "sourceIndex"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "storagePath": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300,
                "description": "Native storagePath value; use the value and type returned by the corresponding service."
              },
              "type": {
                "type": "string",
                "enum": [
                  "image",
                  "video",
                  "audio",
                  "document"
                ],
                "description": "Native type value; use the value and type returned by the corresponding service."
              },
              "name": {
                "description": "Native name value; use the value and type returned by the corresponding service.",
                "type": "string",
                "maxLength": 200
              },
              "mime_type": {
                "description": "Native mime_type value; use the value and type returned by the corresponding service.",
                "type": "string",
                "maxLength": 80
              }
            },
            "required": [
              "storagePath",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "description": "Native media value; use the value and type returned by the corresponding service."
    },
    "replyToMessageId": {
      "description": "Native replyToMessageId value; use the value and type returned by the corresponding service.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "requestId",
    "conversationId",
    "messageId",
    "revision",
    "text",
    "media"
  ],
  "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"
          }
        }
      ]
    }
  }
}