Skip to main content
Version: 1.0.0

Create document template

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


Purpose

The function performs the creation of a new document template with input data in .docx format.

  • Request URL: /api/document-templates/create
  • HTTP method: POST
  • HTTP content-type: multipart/form-data
  • Authorize: Bearer token
  • Parameter:
KeyTypeDescription
filefile[Required] Document template file
namestring[Required] Document 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": []
}