Cập nhật mẫu chứng từ
Ngày cập nhật: 30 tháng 4, 2023
Người cập nhật: VNPT eContract's team
Mục đích: Hàm thực hiện cập nhật các thông tin của mẫu chứng từ đã tạo trước đó.
- Request URL:
/api/document-templates/update
- HTTP method:
POST
- HTTP content-type:
multipart/form-data
- Authorize:
Bearer token
- Parameter:
Key | Type | Description |
---|---|---|
id | int | [Bắt buộc] Id mẫu chứng từ |
file | file | File mẫu chứng từ |
name | string | Tên mẫu chứng từ |
description | string | Mô tả mẫu chứng từ |
Mẫu response body
{
"data": {
"id": 1149,
"name": "FILE MẪU IMPORT LÔ TEST ",
"createdDate": "2022-11-22T14:18:25.3990136",
"fileName": "HĐ Dịch vụ Cấp nước Test Dochub.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"
]
}