Dropbox Sign/templateUpdateFiles

仅预览 · 原因见下方

Dropbox SignDropbox Sign 电子签名 API

POST/template/update_files/{template_id}

更新模板文件

用现有模板的覆盖层覆盖新文件。新文件必须: 1. 具有相同或更高的页数 2. 与被替换文件的方向相同。 这不会覆盖或以任何方式影响现有模板。执行此 Endpoint 后,现有模板和新模板都可以使用。另请注意,这会减少您的模板配额。 覆盖新文件是异步的,如果请求通过初始验证检查,则成功调用此 Endpoint 将返回 200 OK 响应。 建议实现回调来监听回调事件。更新文件时将发送 `template_created` 事件,如果更新文件时出现问题,将发送 `template_error` 事件。如果已配置回调处理程序,但在调用后 60 分钟内未收到事件,请在 API 仪表板中检查请求的状态,并在必要时重试该请求。 如果页面方向或页数与原始模板文档不同,我们将通过 `template_error` [回调事件](https://app.hellosign.com/api/eventsAndCallbacksWalkthrough) 通知您。

通过完整的 Dropbox Sign v3 API 管理账户、签名请求、模板、团队、批量发送、文件下载、传真和事件回调;Hub 仅提供文档与本地 SDK/CLI。

请求

operationId
templateUpdateFiles
服务器
https://api.hellosign.com/v3
认证
api_key, oauth2

请求参数

template_id

pathstring必填

要更新其文件的模板的 ID。

f57db65d3f933b5316d398057a36176831451a35

Body 参数

TemplateUpdateFilesRequest必填

Content-Type: application/json, multipart/form-data

字段: client_idfilesfile_urlsmessagesubjecttest_mode

{
  "client_id": "example-client-id",
  "files": [
    {}
  ],
  "file_urls": [
    "https://example.com/resource"
  ],
  "message": "Example message",
  "subject": "Example document",
  "test_mode": false
}

响应

200

TemplateUpdateFilesResponseapplication/json

成功响应

字段: template

4XX

ErrorResponseapplication/json

操作失败

字段: error

{
  "template": {
    "template_id": "example-template-id",
    "warnings": [
      {
        "warning_name": "Example Name"
      }
    ]
  }
}