Category Filter
Verify File Upload
Once a pre-singned URL has been generated and the files uploaded to Amazon S3, you can use the Verify File Upload request to confirm the file exists on Amazon S3, create a catalog entry, and receive the new file_id.
| Argument | Type | Description |
|---|---|---|
| file_uuid | String | The UUID returned from the generate-presigned-upload-url endpoint |
curl
HTTP Request:
|
1 2 3 4 5 6 7 8 |
POST https://<portal>.hexnodemdm.com/api/v1/filemanagement/confirm-file-upload/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- { "file_uuid": "<UUID string from generate_presigned_upload_url>" } |
Shell Command:
|
1 |
curl -H "Authorization: <api key>" -H "Content-Type: application/json" -d '{"file_uuid":"<UUID string>"}' https://<portal>.hexnodemdm.com/api/v1/filemanagement/confirm-file-upload/ |
HTTP Response:
|
1 2 3 4 |
{ "file_id": <integer - FileManagement primary key>, "message": "File Created Successfully" } |