Update Template
Update an existing template.
You can use this API endpoint to change template settings, add or remove fields in a PDF template, or update the HTML/SCSS for an HTML template.
HTTP Request
PUT https://sync.api.docspring.com/api/v1/templates/<TEMPLATE_ID>
Parameters
All template properties must be nested inside a top-level template
key. For example:
{
"template": {
"name": "New Template Name"
}
}
Authentication
You must send an Authorization
header with the value Basic
followed by base 64 encoded token_id:token_secret
.
For example: Authorization: Basic dG9rZW5faWQ6dG9rZW5fc2VjcmV0Cg==
See the Authentication documentation for more information.
Update a PDF with a multipart PUT request
You can create a new PDF template by making a multipart/form-data
form post, using the HTTP PUT
method. The following form params are required:
template[document]
- Your PDF file data
The following form params are optional:
template[name]
- You can also rename the template during this request.