Документы · Изменение
Документы · Настройки · Изменение
documents_workspace_settings_update
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Документы / Настройки / Изменение». Для изменения нужны изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- values
- Изменяемые поля
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Документы / Настройки / Изменение» с параметром values.allowDownload = true. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- values.allowDownload
- true
- values.includePreview
- true
- values.requireSigningPhoto
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Документы / Настройки / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Update native company document defaults only if the current settings hash still matches. Does not modify existing signed documents.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- expectedHash
- Контрольное значение из предыдущего чтения. обязательно по схеме · 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."
},
"expectedHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native expectedHash value; use the value and type returned by the corresponding service."
},
"values": {
"type": "object",
"properties": {
"senderName": {
"type": "string",
"maxLength": 200,
"description": "Native senderName value; use the value and type returned by the corresponding service."
},
"message": {
"type": "string",
"maxLength": 4000,
"description": "Native message value; use the value and type returned by the corresponding service."
},
"numberPrefix": {
"type": "string",
"maxLength": 20,
"description": "Native numberPrefix value; use the value and type returned by the corresponding service."
},
"expiresDays": {
"type": "integer",
"minimum": 1,
"maximum": 365,
"description": "Native expiresDays 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."
},
"includePreview": {
"type": "boolean",
"description": "Native includePreview 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."
},
"signatureReceiptPlacement": {
"type": "string",
"enum": [
"same_page",
"separate_page"
],
"description": "Native signatureReceiptPlacement value; use the value and type returned by the corresponding service."
}
},
"required": [
"senderName",
"message",
"numberPrefix",
"expiresDays",
"allowDownload",
"includePreview",
"requireSigningPhoto",
"signatureReceiptPlacement"
],
"additionalProperties": false,
"description": "Native values value; use the value and type returned by the corresponding service."
}
},
"required": [
"requestId",
"expectedHash",
"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"
}
}
]
}
}
}