Get a document template
Updated date: 30/04/2023
Updated by: VNPT eContract's team
Purpose
The function retrieves document template information using the template Id.
- Request URL:
/api/document-templates/{id}
- HTTP method:
GET
- Authorize:
Bearer token
- Parameter:
Key | Type | Description |
---|---|---|
id | int | [Required] Id of document template |
Sample request
Id of document template: id = 1149
Request: /api/document-templates/1149
Sample response body
{
"data": {
"id": 1149,
"name": "Batch import sample template",
"createdDate": "2022-11-22T14:18:25.3990136",
"fileName": "dochub-template.docx",
"downloadUrl": "{HOST}/Api/Download?token=...",
"pdfDownloadUrl": "{HOST}/Api/Download?token=...",
"xlsxDownloadUrl": "{HOST}/Api/Download?token=...",
"isShareable": true,
"isDeletelable": true,
"isUpdateable": true
},
"success": true,
"code": 0,
"messages": []
}