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

Документы · Приглашение

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

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

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

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

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

Create recipient-bound signing or viewing links for the exact reviewed document revision. Does not send links, accept terms or sign for anyone. Use the existing communications actions for an explicitly requested delivery.

Параметры запроса
documentId
Native documentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
recipients
Native recipients value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 20
expiresAt
Native expiresAt value; use the value and type returned by the corresponding service. обязательно по схеме · integer · максимум 9007199254740991
allowDownload
Native allowDownload value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
sequential
Native sequential value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
requireAuth
Native requireAuth value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
requireSigningPhoto
Native requireSigningPhoto value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
uploadRequests
Native uploadRequests value; use the value and type returned by the corresponding service. необязательно · array · до элементов 5
Что вернёт команда
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_invite
Вход · 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."
    },
    "recipients": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Native name value; use the value and type returned by the corresponding service."
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
            "description": "Native email value; use the value and type returned by the corresponding service."
          },
          "role": {
            "type": "string",
            "enum": [
              "sign",
              "view"
            ],
            "description": "Native role value; use the value and type returned by the corresponding service."
          }
        },
        "required": [
          "name",
          "email",
          "role"
        ],
        "additionalProperties": false
      },
      "description": "Native recipients value; use the value and type returned by the corresponding service."
    },
    "expiresAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expiresAt value; use the value and type returned by the corresponding service."
    },
    "allowDownload": {
      "type": "boolean",
      "description": "Native allowDownload value; use the value and type returned by the corresponding service."
    },
    "sequential": {
      "type": "boolean",
      "description": "Native sequential value; use the value and type returned by the corresponding service."
    },
    "requireAuth": {
      "type": "boolean",
      "description": "Native requireAuth value; use the value and type returned by the corresponding service."
    },
    "requireSigningPhoto": {
      "type": "boolean",
      "description": "Native requireSigningPhoto value; use the value and type returned by the corresponding service."
    },
    "uploadRequests": {
      "description": "Native uploadRequests value; use the value and type returned by the corresponding service.",
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Native id value; use the value and type returned by the corresponding service."
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Native type value; use the value and type returned by the corresponding service."
          },
          "description": {
            "description": "Native description value; use the value and type returned by the corresponding service.",
            "type": "string",
            "maxLength": 1000
          },
          "required": {
            "type": "boolean",
            "description": "Native required value; use the value and type returned by the corresponding service."
          }
        },
        "required": [
          "id",
          "type",
          "required"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "documentId",
    "requestId",
    "expectedRevision",
    "recipients",
    "expiresAt",
    "allowDownload",
    "sequential",
    "requireAuth",
    "requireSigningPhoto"
  ],
  "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"
          }
        }
      ]
    }
  }
}