Update a template
PUT/templates/{uuid}
The API endpoint provides the functionality to update the name of the template.
Parameters
- uuid String
The unique identifier of the document template.
Request Body Properties
- name String
Name of the template - file File
A template is composed of files
📘
Content-Type : application/json
NodeJS
var axios = require("axios").default;
const data = {
"name":"API Test Template updated"
}
var options = {
method: 'PUT',
url: 'https://api.signature.nc/api/v1/templates/e37e7113-6eb9-4eb7-840f-feffe528dd03',
headers: {'Authorization': 'Bearer {apiKey}','content-type': 'application/json'},
body: data
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
json
{
"name": "API Test Template updated",
"createdAt": "2024-05-27T02:52:59.310Z",
"updatedAt": "2024-05-27T02:52:59.310Z",
"uuid": "e37e7113-6eb9-4eb7-840f-feffe528dd03",
"documents": [
{
"name": "test.pdf",
"uuid": "486b40fa-dc36-4a40-b057-9058b7056896",
"fields": [],
"url": "https://api.signature.nc/uploads/test.pdf"
}
{
"name": "test2.pdf",
"uuid": "a11418ef-f5e4-4dcc-82f2-3189840950e2",
"fields": [],
"url": "https://api.signature.nc/uploads/test2.pdf"
}
]
}