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:
Key | Type | Description |
---|---|---|
id | int | [Required] Id of document template |
file | file | Document template file |
name | string | Document template name |
description | string | Document 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"
]
}