{"id":5033,"date":"2026-03-31T11:03:38","date_gmt":"2026-03-31T11:03:38","guid":{"rendered":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/?page_id=5033"},"modified":"2026-04-01T04:37:53","modified_gmt":"2026-04-01T04:37:53","slug":"api-to-verify-file-upload","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/content-management\/api-to-verify-file-upload\/","title":{"rendered":"Verify file upload to Amazon S3"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>Verify File Upload<\/h2>\n<p>Once a <a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/content-management\/api-to-generate-pre-signed-upload-url\/\" target=\"_blank\" rel=\"noopener noreferrer\">pre-singned URL<\/a> 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.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_18273645\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"15%\"><strong>Argument<\/strong><\/th>\n<th width=\"12%\"><strong>Type<\/strong><\/th>\n<th width=\"30%\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>file_uuid<\/td>\n<td>String<\/td>\n<td>The UUID returned from the generate-presigned-upload-url endpoint<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">POST https:\/\/<portal>.hexnodemdm.com\/api\/v1\/filemanagement\/confirm-file-upload\/\r\nheaders:-\r\nAuthorization: <api key>\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n{  \r\n\"file_uuid\": \"<UUID string from generate_presigned_upload_url>\"  \r\n}\r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\"> 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\/\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{ \r\n  \"file_id\": <integer - FileManagement primary key>, \r\n  \"message\": \"File Created Successfully\" \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":5031,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-5033","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/5033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=5033"}],"version-history":[{"count":4,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/5033\/revisions"}],"predecessor-version":[{"id":5054,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/5033\/revisions\/5054"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/5031"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=5033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}