Update documents of a given template
PUT/templates/{uuid}/documents
The API endpoint provides the functionality to remove or add documents of a given template.
Parameters
- uuid String
The unique identifier of the document template.
Request Body Properties
- documents Text
Used to remove an existing document attached to a template.
List of documents you want to remove
[
{
"remove":boolean,
"uuid": string
}
]
Example :
[
{
"remove":"true",
"uuid":"4891e4d3-a66d-429d-a7db-bcc34f6fe499"
},
{
"remove":"true",
"uuid":"a11418ef-f5e4-4dcc-82f2-3189840950e2"
},
]
- file File
A template is composed of files
📘
Content-Type : multipart/form-data
📘
Files can be of type .pdf
, .png
and .jpg
NodeJS
var axios = require("axios").default;
let formData = new FormData()
formData.append('documents', '[{"remove":"true", "uuid":"42c33e69-1023-4899-af9f-688fc6e3646d"},{"remove":"true", "uuid":"a11418ef-f5e4-4dcc-82f2-3189840950e2"}]')
formData.append('file', '/Users/user/test3.pdf')
formData.append('file', '/Users/user/test4.pdf')
var options = {
method: 'POST',
url: 'https://api.signature.nc/api/v2/templates',
headers: {'Authorization': 'Bearer {apiKey}'},
body: formData
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
json
{
"documents": [
{
"name": "fichier-test-multi-pages.pdf",
"uuid": "71a19c1d-ac97-42a8-8216-e07b21ce91ec",
"url": "https://signaturencdevelopment.s3-accelerate.amazonaws.com/fichier_test_multi_pages_0337e48bbe.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIATFNZMZNEHIQC3SME%2F20250402%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20250402T022730Z&X-Amz-Expires=900&X-Amz-Signature=72457204d96c3f6b98e6c35df50902605fefc7072d3528ce3ee171df23d091ca&X-Amz-SignedHeaders=host&x-id=GetObject"
},
{
"name": "Ordredujour-conseil adminitration.pdf",
"uuid": "84e165c0-0a57-451c-b9ea-ffc863b59720",
"url": "https://signaturencdevelopment.s3-accelerate.amazonaws.com/Ordredujour_conseil_adminitration_c1e3180183.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIATFNZMZNEHIQC3SME%2F20250402%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20250402T022730Z&X-Amz-Expires=900&X-Amz-Signature=d9405c0c53a05d08e0ee01c10a406ab8147f7ff1d92fff813f7086bc3723be11&X-Amz-SignedHeaders=host&x-id=GetObject"
}
]
}