Nhảy tới nội dung
Phiên bản: 1.0.0

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:
KeyTypeDescription
idint[Bắt buộc] Id mẫu chứng từ
filefileFile mẫu chứng từ
namestringTên mẫu chứng từ
descriptionstringMô 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"
]
}