Table of Contents
Table of Contents | ||
---|---|---|
|
Changelogs
Version | Date | Changes by | Description of change |
V1.0 | Mar 29, 2024 | Que Nguyen |
|
V1.0.1 | April 10, 2024 | Que Nguyen |
|
Release status
Environment | Status | Released Date | Version | ||||||
DEV |
| Mar 25, 2024 | V1.0 | ||||||
UAT |
| Mar 25, 2024 | V1.0 | ||||||
PROD |
| Mar 25, 2024 | V1.0 |
API Definition
Upload Document
Request Header | ||
---|---|---|
Name | Value | |
|
| |
Request Payload | ||
Field | Type | Description |
|
Mime types:
Max size: 40MB |
|
Response Header | ||
---|---|---|
|
| |
Response Body | ||
Field | Type | Description |
|
| File unique identifier |
Return file Id |
Request
Status | ||||
---|---|---|---|---|
|
/public/v2/documents/devices
Request with cURL
Code Block | ||
---|---|---|
| ||
curl --location '{url}/public/v2/documents/devices' \ --header 'Authorization: Bearer {access_token}' \ --form 'File=@"/C:/Users/Document.docx"' |
Response
Info |
---|
200 Success |
Code Block |
---|
{ "Data": { "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }, "Errors": [], "Meta": null, "StatusCode": 200, "Message": "Success" } |
Warning |
---|
404 Not Found |
Code Block | ||
---|---|---|
| ||
{ "Data": null, "Errors": [], "Meta": null, "StatusCode": 404, "Message": "Not Found" } |
Warning |
---|
422 Unprocessable Entity |
Code Block | ||
---|---|---|
| ||
{ "Data": null, "StatusCode": 422, "Errors": [], "Meta": null, "Message": "Unprocessable Entity" } |
Warning |
---|
401 Unauthorized |
Code Block | ||
---|---|---|
| ||
{ "Data": null, "StatusCode": 401, "Errors": [], "Meta": null, "Message": "Unauthorized" } |