Документы · Изменение
Документы · Доступ · Изменение
documents_workspace_access_update
Попробуйте три запроса
Подготовить
- Вы указываетеДокумент
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Документы / Доступ / Изменение». Для изменения нужны документ, версия записи. Покажи объект и ожидаемый эффект до выполнения.
- documentId
- Документ
- revision
- Версия записи
- expiresAt
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Документы / Доступ / Изменение» с параметром documentId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- documentId
- DEMO-101
- allowDownload
- true
- requireAuth
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Документы / Доступ / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Update specified native recipient access/requirements at the current revision. Existing signatures lock requirements; password changes remain in the private UI.
Параметры запроса
- documentId
- Native documentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- revision
- Текущая версия выбранной записи. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- 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
- 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
- sequential
- Native sequential 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
- recipients
- Native recipients value; use the value and type returned by the corresponding service. необязательно · array · до элементов 100
Что вернёт команда
- 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": {
"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."
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native revision value; use the value and type returned by the corresponding service."
},
"expiresAt": {
"description": "Native expiresAt value; use the value and type returned by the corresponding service.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"allowDownload": {
"description": "Native allowDownload value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"requireAuth": {
"description": "Native requireAuth value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"requireSigningPhoto": {
"description": "Native requireSigningPhoto value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"sequential": {
"description": "Native sequential value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"uploadRequests": {
"description": "Native uploadRequests value; use the value and type returned by the corresponding service.",
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp0"
},
"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
}
},
"recipients": {
"description": "Native recipients value; use the value and type returned by the corresponding service.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp0"
},
"role": {
"type": "string",
"enum": [
"sign",
"view"
],
"description": "Native role value; use the value and type returned by the corresponding service."
}
},
"required": [
"id",
"role"
],
"additionalProperties": false
}
}
},
"required": [
"documentId",
"requestId",
"revision"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native id value; use the value and type returned by the corresponding service."
}
}
}Выход · 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"
}
}
]
}
}
}