Skip to main content
Version: 1.0.0

Update document template

Updated date: 30/04/2023
Updated by: VNPT eContract's team


Purpose

The function updates the information of a previously created document template.

  • Request URL: /api/document-templates/update
  • HTTP method: POST
  • HTTP content-type: multipart/form-data
  • Authorize: Bearer token
  • Parameter:
KeyTypeDescription
idint[Required] Id of document template
filefileDocument template file
namestringDocument template name
descriptionstringDocument template description

Sample response body

{
"data": {
"id": 1149,
"name": "Batch import 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": [
"Update document template success"
]
}