{"info":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","description":"<html><head></head><body><p>The Media Service is a collection of four services <code>manager</code>, <code>storage</code>, <code>resolver</code>and <code>modify</code>.</p>\n<p>Media File ZUID example: <code>3-19c69dd-07a7a</code></p>\n<h2 id=\"media-manager-service\">Media Manager Service</h2>\n<p>Its job is to communicate with the database. The majority of endpoint we used commonly are in this service. This service orchestrates all the media services.</p>\n<p><a href=\"https://media-manager.api.zesty.io\">https://media-manager.api.zesty.io</a></p>\n<h2 id=\"media-storage-service\">Media Storage Service</h2>\n<p>Its job is to communicate with the storage provider.</p>\n<p><a href=\"https://media-storage.api.zesty.io\">https://media-storage.api.zesty.io</a></p>\n<h2 id=\"media-modify-service\">Media Modify Service</h2>\n<p>Its job is to manipulate images, get commands from manager, and make requests to storage.</p>\n<p><a href=\"https://media-modify.api.zesty.io\">https://media-modify.api.zesty.io</a></p>\n<h2 id=\"media-resolver-service\">Media Resolver Service</h2>\n<p>Its job it to get a media file ZUID and return the associated CDN path. This service is consumed everywhere we load media. It is the most heavily trafficked service of the 4.</p>\n<p><a href=\"https://media-resolver.api.zesty.io\">https://media-resolver.api.zesty.io</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"383273","collectionId":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","publishedId":"77o1zPL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-06-03T17:01:08.000Z"},"item":[{"name":"Manager","item":[{"name":"Bin","item":[{"name":"Create Bin","id":"5d7d6d36-cd36-be53-743f-f83dc487bf07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cdn_prefix","description":"<p>[string] Optional. CDN Prefix</p>\n","type":"text","value":""},{"key":"eco_id","value":"","description":"<p>[id] Required if site_id is NOT in post body. Ecosystem ID</p>\n","type":"text"},{"key":"site_id","value":"","description":"<p>[id] Required if site_id is NOT in post body. Instance ID</p>\n","type":"text"},{"key":"name","value":"","description":"<p>[string] Required. Name of Bin</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin","description":"<p>Create a bin based on the default storage driver and default cdn in the associated ecosystem or instance.</p>\n<p><strong>Body</strong>: form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cdn_prefix</td>\n<td>[string] <strong>Optional.</strong> Unique. Used to specify the prefix of the CDN base URL</td>\n</tr>\n<tr>\n<td>eco_id</td>\n<td>[id] <strong>Required</strong> if site_id is NOT in post body. Bin created will be associated to the Ecosystem ID</td>\n</tr>\n<tr>\n<td>site_id</td>\n<td>[id] <strong>Required</strong> if eco_id is NOT in post body. Bin created will be associated to the Instance ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>[string] <strong>Required.</strong> Name of bin that will be created</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin"],"host":["{{media_manager_url}}"],"query":[],"variable":[]}},"response":[{"id":"a6abd59b-9323-4ee2-a97b-2878154f1dcf","name":"201 - Created Bin in an Ecosystem","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cdn_prefix","description":"[string] Optional. CDN Prefix","type":"text","value":""},{"key":"eco_id","value":"{{ecosystem_id}}","description":"[id] Required if site_id is NOT in post body. Ecosystem ID","type":"text"},{"key":"site_id","value":"","description":"[id] Required if site_id is NOT in post body. Instance ID","type":"text"},{"key":"name","value":"Bin in an Ecosystem","description":"[string] Required. Name of Bin","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:42:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"197"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c5-/bQlKncmuWhbnQIN/1evkKKR4eo\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created bin Bin in an Ecosystem\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"1-10ea2292-2jnvws\",\n        \"name\": \"Bin in an Ecosystem\",\n        \"storage_name\": \"zesty-4cc8eb53c749834396700bd8901ad02ec81079fd\"\n    }\n}"},{"id":"ca416da4-bb4e-4988-9f0b-7741a3103d43","name":"201 - Created Bin in an Instance","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cdn_prefix","description":"[string] Optional. CDN Prefix","type":"text","value":""},{"key":"eco_id","value":"","description":"[id] Required if site_id is NOT in post body. Ecosystem ID","type":"text"},{"key":"site_id","value":"{{instance_id}}","description":"[id] Required if site_id is NOT in post body. Instance ID","type":"text"},{"key":"name","value":"Bin in an Instance","description":"[string] Required. Name of Bin","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:42:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"195"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c3-FnsIEZ69ujXyRXSAwchPUZ/fSQY\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created bin Bin in an Instance\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"1-10ea22ad-470frf\",\n        \"name\": \"Bin in an Instance\",\n        \"storage_name\": \"zesty-964a22681cbcfae203a83e8cc9f096f11c313670\"\n    }\n}"},{"id":"da624421-a963-4f72-92d0-da87bd5f6b5e","name":"201 - Created Bin with CDN prefix","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cdn_prefix","description":"[string] Optional. CDN Prefix","type":"text","value":"abc123"},{"key":"eco_id","value":"","description":"[id] Required if site_id is NOT in post body. Ecosystem ID","type":"text"},{"key":"site_id","value":"{{instance_id}}","description":"[id] Required if site_id is NOT in post body. Instance ID","type":"text"},{"key":"name","value":"Bin with CDN prefix","description":"[string] Required. Name of Bin","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:42:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"197"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c5-PYYm8KQHiji7YRxziSxEalQFwyA\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created bin Bin with CDN prefix\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"1-10ea22c0-h4xr0b\",\n        \"name\": \"Bin with CDN prefix\",\n        \"storage_name\": \"zesty-51ef106214121221ce97b9ce9e1f301772481c08\"\n    }\n}"},{"id":"53e60528-7baa-4ee5-b731-af1175027935","name":"400 - Null Required Fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cdn_prefix","description":"[string] Optional. CDN Prefix","type":"text","value":""},{"key":"eco_id","value":"","description":"[id] Required if site_id is NOT in post body. Ecosystem ID","type":"text"},{"key":"site_id","value":"","description":"[id] Required if site_id is NOT in post body. Instance ID","type":"text"},{"key":"name","value":"","description":"[string] Required. Name of Bin","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:43:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"50-dUzuTyLziOfDcLHTAKXwYpgSKU0\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Requires one of: site id, eco id\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"}],"_postman_id":"5d7d6d36-cd36-be53-743f-f83dc487bf07"},{"name":"Get Bin","id":"b75a7a1d-bd49-6912-9458-4877ef72943a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}","description":"<p>Fetch a bin by Bin ID (in ZUID format).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin","{{bin_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":null,"key":"bin_id"}]}},"response":[{"id":"927918ae-f495-46e5-9e8a-7e3e6676ff22","name":"200 - Get Bin","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:39:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"20e-wV6nQoVGjEFDCAGZlgL6sY9qets\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bin\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"1-f6a090d-6fxfs2\",\n            \"name\": \"My New Bin\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-a67716ebdbf71352e069cbafc1832fda151f56b4\",\n            \"storage_base_url\": \"https://zesty-a67716ebdbf71352e069cbafc1832fda151f56b4.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://zsh488.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T03:22:53.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        }\n    ]\n}"},{"id":"42187605-324c-4b13-8da3-c23879b78e23","name":"403 - No Permission to Get Bin","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:30:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"21-PE0IsM/BymiuuUTcydoPd6B+Zuw\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"code\": 403\n}"},{"id":"d928f2db-f241-4f61-b10a-f17770353d4e","name":"404 - Bin Not Found","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:18:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"3b-muSU4zQQY6uiLZE65CSzrb2JHzk\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bin not found\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"b75a7a1d-bd49-6912-9458-4877ef72943a"},{"name":"Get Eco Bins","id":"42bc563e-be9d-4b75-9220-56a4889db15a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/eco/{{ecosystem_zuid}}/bins","description":"<p>Fetch bins associated with an Ecosystem ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["eco","{{ecosystem_zuid}}","bins"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"eco_id"}]}},"response":[{"id":"87aa6cf1-7210-4e41-93cf-b1feca4c7f6e","name":"200 - Get Eco Bins","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/eco/{{ecosystem_zuid}}/bins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:40:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1f39-5YayDeMzuV8LYsUtIrSby7xaYvo\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bins\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"1-108c18d6-slmf4m\",\n            \"name\": \"Bin in an Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-1c59bcb21a0ab118f438d67784cafa07e3af07d8\",\n            \"storage_base_url\": \"https://zesty-1c59bcb21a0ab118f438d67784cafa07e3af07d8.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://17xpls.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-10-19T03:47:34.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-108c1be7-0l6zmc\",\n            \"name\": \"Matthew Bin Test\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-9898b2750ab9aed049d6d3e2ab321e3c42284b26\",\n            \"storage_base_url\": \"https://zesty-9898b2750ab9aed049d6d3e2ab321e3c42284b26.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://lygbrh.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-10-19T04:00:39.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-109448fc-79nt47\",\n            \"name\": \"Matthew Bin Test\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-0570284ede23083461b9f97bf4a836e8f94bdff5\",\n            \"storage_base_url\": \"https://zesty-0570284ede23083461b9f97bf4a836e8f94bdff5.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://75ly72.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-10-25T08:51:08.000Z\",\n            \"updated_at\": \"2023-10-25T08:51:08.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-10944bc2-pc44f9\",\n            \"name\": \"Matthew Bin Test - UPDATED AGAIN\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-d1dca9c78c03ec33b6e64cb28eb015216ac1206f\",\n            \"storage_base_url\": \"https://zesty-d1dca9c78c03ec33b6e64cb28eb015216ac1206f.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://jxbh3x.media.zestyio.com\",\n            \"created_by\": \"5-a0baa0cee8-vz3hhm\",\n            \"updated_by\": \"5-98e68eccf6-vs0z04\",\n            \"created_at\": \"2023-10-25T09:02:58.000Z\",\n            \"updated_at\": \"2023-10-25T09:08:26.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-10949adb-cl35z6\",\n            \"name\": \"Matthew Bin Test\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-38d0e8863b0e30eb0c305fe716ad2cbcf3fc89e9\",\n            \"storage_base_url\": \"https://zesty-38d0e8863b0e30eb0c305fe716ad2cbcf3fc89e9.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://dkf91k.media.zestyio.com\",\n            \"created_by\": \"5-a0baa0cee8-vz3hhm\",\n            \"updated_by\": \"5-a0baa0cee8-vz3hhm\",\n            \"created_at\": \"2023-10-25T14:40:27.000Z\",\n            \"updated_at\": \"2023-10-25T14:40:27.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-70f2a7b-0i2db\",\n            \"name\": \"zesty-zesty.io 2018\",\n            \"site_id\": \"8355176\",\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-cda81f4610ccb207382be31a8d62bb9c5d57e545\",\n            \"storage_base_url\": \"https://zesty-cda81f4610ccb207382be31a8d62bb9c5d57e545.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://kfg6bckb.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2018-10-02T18:27:07.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-70f49d6-xhv76\",\n            \"name\": \"zesty-zesty.io 2018 landing pages\",\n            \"site_id\": \"8355177\",\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-c46db4f9d58eccd76d2edcf69603d60b92187191\",\n            \"storage_base_url\": \"https://zesty-c46db4f9d58eccd76d2edcf69603d60b92187191.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://24gjfb0l.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2018-10-02T20:40:54.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-a225fd8-rbb4i\",\n            \"name\": \"zesty-vue inline template\",\n            \"site_id\": \"8356745\",\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-2bf1b49cc29efc821e7ece6caf2a160daea25f29\",\n            \"storage_base_url\": \"https://zesty-2bf1b49cc29efc821e7ece6caf2a160daea25f29.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://qzsnrt2m.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2020-05-21T21:08:40.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-a446f65-yutzb\",\n            \"name\": \"zesty-test suite instance\",\n            \"site_id\": \"8356826\",\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-7b7304c5547f9089854531a25c2367ac05b0f5bc\",\n            \"storage_base_url\": \"https://zesty-7b7304c5547f9089854531a25c2367ac05b0f5bc.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://bstxwk48.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2020-06-16T17:12:05.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-a733ae3-sqbxx\",\n            \"name\": \"zesty-enterprise content demo\",\n            \"site_id\": \"8356970\",\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-a9e33b0fd2e30f29a94051c0a2eeff74cead00d3\",\n            \"storage_base_url\": \"https://zesty-a9e33b0fd2e30f29a94051c0a2eeff74cead00d3.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://fglmtnzw.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2020-07-22T05:04:35.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a090d-6fxfs2\",\n            \"name\": \"My New Bin\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-a67716ebdbf71352e069cbafc1832fda151f56b4\",\n            \"storage_base_url\": \"https://zesty-a67716ebdbf71352e069cbafc1832fda151f56b4.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://zsh488.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T03:22:53.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a167a-b4gfbq\",\n            \"name\": \"Bin in an Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-2dc8983248ec7c44dc2ef506a238a1849d7fd341\",\n            \"storage_base_url\": \"https://zesty-2dc8983248ec7c44dc2ef506a238a1849d7fd341.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://bc31rj.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T04:20:10.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a16ad-ddx5x5\",\n            \"name\": \"Bin in Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-3768ca398f157db3caeb8017ccf58fb7a3a5ae41\",\n            \"storage_base_url\": \"https://zesty-3768ca398f157db3caeb8017ccf58fb7a3a5ae41.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://x572nm.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T04:21:01.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a177a-2gpw9g\",\n            \"name\": \"Bin in an Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-58d50e187d941c8ec62a14ce41f0248aac0a544b\",\n            \"storage_base_url\": \"https://zesty-58d50e187d941c8ec62a14ce41f0248aac0a544b.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://jmnjkd.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T04:24:26.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a1b4e-qjtn1m\",\n            \"name\": \"Bin in an Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-7b64654033b09861fccc931589b35a916890fafc\",\n            \"storage_base_url\": \"https://zesty-7b64654033b09861fccc931589b35a916890fafc.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://ft4rxl.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T04:40:46.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"1-f6a1b55-vgt11m\",\n            \"name\": \"Bin in an Ecosystem\",\n            \"site_id\": null,\n            \"eco_id\": \"1\",\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-f9c2d5f0c4f44d2d90d44b45b8a926fca35d80f0\",\n            \"storage_base_url\": \"https://zesty-f9c2d5f0c4f44d2d90d44b45b8a926fca35d80f0.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://fbbm6w.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T04:40:53.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        }\n    ]\n}"}],"_postman_id":"42bc563e-be9d-4b75-9220-56a4889db15a"},{"name":"Get Site Bins","id":"5709d3a3-3dc5-53dc-ba7e-9140fb68ebc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/site/{{instance_id}}/bins","description":"<p>Fetch bins associated with an Instance ID (unique from an Instance ZUID)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["site","{{instance_id}}","bins"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"instance_id"}]}},"response":[{"id":"9739448d-f6df-4423-9098-e0f891f84ecf","name":"200 - Get Site Bins","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/site/{{instance_id}}/bins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:41:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"242-vQZFEX+YM/Lok7V9lw6NnejxVrU\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bin\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"1-6c9618c-r26pt\",\n            \"name\": \"zesty-zesty.pw prod testing instance 123\",\n            \"site_id\": \"8355121\",\n            \"eco_id\": null,\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-4f0ac9430c309aa829ab8152f0cfc82d29a335d7\",\n            \"storage_base_url\": \"https://zesty-4f0ac9430c309aa829ab8152f0cfc82d29a335d7.storage.googleapis.com\",\n            \"cdn_driver\": \"fastly\",\n            \"cdn_base_url\": \"https://8xbq19z1.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2018-08-10T20:03:24.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null,\n            \"default\": true\n        }\n    ]\n}"}],"_postman_id":"5709d3a3-3dc5-53dc-ba7e-9140fb68ebc2"},{"name":"Get Bin Files","id":"337b8d94-5605-09fb-578a-8449a35a709d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}/files","description":"<p>Fetch Files associated with a Bin ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin","{{bin_id}}","files"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"bin_id"}]}},"response":[{"id":"c95bfe0e-3ab3-4a1e-b5e4-bac8c5b3b557","name":"200 - Get Bin Files","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:41:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c77-IwWZL3YOsi9z0ivERpmCC6BSR30\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Group\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"3-fda38aa-tc9f5q\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"testfile.png\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/testfile.png\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-06-06T05:39:54.000Z\",\n            \"updated_at\": \"2023-06-06T05:39:54.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-fc63431-ht87xv\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"testfile.png\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/testfile.png\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-05-22T01:15:29.000Z\",\n            \"updated_at\": \"2023-05-22T01:15:29.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3b15-zz4pl8\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"filenametest3.json\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest3.json\",\n            \"created_by\": \"Matthew\",\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:56:21.000Z\",\n            \"updated_at\": \"2023-03-13T06:56:21.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3a42-286j85\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-3916e0f-vhly7\",\n            \"filename\": \"filenametest5.json\",\n            \"title\": \"new title test\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest5.json\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:52:50.000Z\",\n            \"updated_at\": \"2023-03-13T07:12:38.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3a06-4h78cr\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"filenametest4.json\",\n            \"title\": \"\",\n            \"url\": \"https://testcdn.media.zestyio.com\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:51:50.000Z\",\n            \"updated_at\": \"2023-03-13T06:51:50.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a39c9-5ct6hf\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"filenametest3.json\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest3.json\",\n            \"created_by\": \"653467\",\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:50:49.000Z\",\n            \"updated_at\": \"2023-03-13T06:50:49.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3992-jnbhp8\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-34b0d20-f0yr4\",\n            \"filename\": \"filenametest2.json\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest2.json\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:49:54.000Z\",\n            \"updated_at\": \"2023-03-13T06:49:54.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3932-6tlf8l\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"filenametest2.json\",\n            \"title\": \"titletest\",\n            \"url\": \"https://zvbn34.media.zestyio.com\",\n            \"created_by\": \"65412\",\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:48:18.000Z\",\n            \"updated_at\": \"2023-03-13T06:48:18.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        },\n        {\n            \"id\": \"3-f6a3823-nphm8d\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"filename\": \"filenametest.json\",\n            \"title\": \"\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest.json\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-03-13T06:43:47.000Z\",\n            \"updated_at\": \"2023-03-13T06:43:47.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        }\n    ]\n}"}],"_postman_id":"337b8d94-5605-09fb-578a-8449a35a709d"},{"name":"Get Bin Groups","id":"e9bc7028-d063-b48b-fa44-a50daaf4a70e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}/groups","description":"<p>Fetch Groups associated with a Bin ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin","{{bin_id}}","groups"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"bin_id"}]}},"response":[{"id":"65d611e9-784d-4c9f-9328-f71fcbc8b4a1","name":"200 - Get Bin Groups","originalRequest":{"method":"GET","header":[],"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:41:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"10d-W3VehygL9XG4Zb9RNB6BTIer6Nc\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Folder\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"2-fcfc9f0-hh0h6s\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"2-fcfc9f0-hh0h6s\",\n            \"name\": \"New Group\",\n            \"created_by\": null,\n            \"updated_by\": null,\n            \"created_at\": \"2023-05-29T00:44:48.000Z\",\n            \"updated_at\": null,\n            \"deleted_at\": null\n        }\n    ]\n}"}],"_postman_id":"e9bc7028-d063-b48b-fa44-a50daaf4a70e"},{"name":"Update Bin","id":"7bd68b78-8532-e4cb-a59b-efa24d84ce72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>[string] Required. Name of Bin</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}","description":"<p>Update name of bin</p>\n<p><strong>Body</strong>: form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>[string] <strong>Required</strong>. New name of bin</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin","{{bin_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":null,"key":"bin_id"}]}},"response":[{"id":"f04196a9-d1a8-4ac4-bbee-0603f706db4e","name":"200 - Update Bin","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"New Bin Name","description":"[string] Required. Name of Bin","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:53:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"7c-Eztpd5qRmGSJyt2Ax8XB1b7SesE\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bin 1-f6a090d-6fxfs2 updated\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"1-f6a090d-6fxfs2\",\n            \"name\": \"New Bin Name\"\n        }\n    ]\n}"}],"_postman_id":"7bd68b78-8532-e4cb-a59b-efa24d84ce72"},{"name":"Delete Bin","id":"449b3da4-69b4-f853-f9d0-31a620859cf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}","description":"<p>Delete a bin</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["bin","{{bin_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"bin_id"}]}},"response":[{"id":"76d5faca-231e-4234-a209-7407c94cb1f3","name":"200 - Delete Bin","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:28:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1a-+eb+G4mWPFFRhDQqWlxdUzwQXj8\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"code\": 200\n}"},{"id":"fa5ce4ad-119b-4b3f-9594-618548a77a84","name":"403 - No Permission to Delete Bin","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:30:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"21-PE0IsM/BymiuuUTcydoPd6B+Zuw\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"code\": 403\n}"},{"id":"bce42030-de35-4698-9fc2-e01bdc84f517","name":"404 - Bin Not Found","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/bin/{{bin_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:28:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"4d-bOogJg3jN+okeT0/FSRuuZCFnzI\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bin 1-10ea2292-2jnvws not found\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"449b3da4-69b4-f853-f9d0-31a620859cf6"}],"id":"f6023a91-531a-87cb-c267-64a18d375dc8","description":"<p>Bin is a storage for files and groups used to organize an instance or an ecosystem's media files.</p>\n","event":[{"listen":"prerequest","script":{"id":"ab02bd93-050a-43f5-a63c-988729a696e4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bb2e610b-81f8-4192-823f-197097effaa0","type":"text/javascript","exec":[""]}}],"_postman_id":"f6023a91-531a-87cb-c267-64a18d375dc8","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}},{"name":"Group","item":[{"name":"Create Group","id":"e2600abe-a4b3-3dc4-5fe1-f48d7559a559","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"","description":"<p>[id] Required. Bin ID</p>\n","type":"text"},{"key":"group_id","value":"","description":"<p>[id] Optional. Group ID</p>\n","type":"text"},{"key":"name","value":"","description":"<p>[string] Optional. Name of Group</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group","description":"<p>Create a group, nested under another group or at the top level (bin level).</p>\n<p><strong>Body:</strong> form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bin_id</td>\n<td>[id] <strong>Required</strong>. Bin ID where the Group will be associated with</td>\n</tr>\n<tr>\n<td>group_id</td>\n<td>[id] <strong>Optional</strong>. The group that will be created will have this group_id as its parent, otherwise parent will be bin_id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>[string] <strong>Optional</strong>. If no value, the folder is named 'new folder' by default</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["group"],"host":["{{media_manager_url}}"],"query":[],"variable":[]}},"response":[{"id":"68244df1-e411-4480-90b0-dfadef012523","name":"201 - Create Group in a Bin","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"name","value":"","description":"[string] Optional. Name of Group","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:54:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"193"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c1-B1A/usI1g3Gd+cSjCWFTleqcctE\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created folder New Folder\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": [\n        {\n            \"id\": \"2-10ea2589-vfwpcp\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"name\": \"New Folder\",\n            \"type\": \"group\"\n        }\n    ]\n}"},{"id":"d321d4c4-74ed-4e37-926c-dd74d501da70","name":"201 - Create Group within a Group","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"{{group_id}}","description":"[id] Optional. Group ID","type":"text"},{"key":"name","value":"","description":"[string] Optional. Name of Group","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:55:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"c2-/+WNvhEbwD0UPsbjvZ2T3P3US18\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created folder New Folder\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": [\n        {\n            \"id\": \"2-10ea25a8-0hbmn8\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"2-10803c6d-66zrcc\",\n            \"name\": \"New Folder\",\n            \"type\": \"group\"\n        }\n    ]\n}"},{"id":"870512d8-1850-44e0-a175-10bf84b8fff2","name":"201 - Create Group with Name","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"name","value":"My Bucket","description":"[string] Optional. Name of Group","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:55:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"191"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"bf-9R7pyOzZ+AhlrVazDa/MUPhnnPs\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created folder My Bucket\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": [\n        {\n            \"id\": \"2-10ea25ce-4cj695\",\n            \"bin_id\": \"1-f6a090d-6fxfs2\",\n            \"group_id\": \"1-f6a090d-6fxfs2\",\n            \"name\": \"My Bucket\",\n            \"type\": \"group\"\n        }\n    ]\n}"},{"id":"769166ec-887a-425e-8d7c-c87db70a690b","name":"400 - Null Required Field","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"name","value":"","description":"[string] Optional. Name of Group","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:11:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"3e-sS8ucxXL2iKcwDzRoqtWQn2tgtY\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing bin id\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"}],"_postman_id":"e2600abe-a4b3-3dc4-5fe1-f48d7559a559"},{"name":"Get Group","id":"c2668203-f55d-4f0a-a01e-10fd7191e70f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}","description":"<p>Fetch a group by Group ID (in ZUID format).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["group","{{group_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"group_id"}]}},"response":[{"id":"bca1fcc0-25a0-4d43-8346-17c4c68bdaf0","name":"200 - Get Group","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:57:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1c2-w0z4tb62px2t/O7UJVZsYSB9iiA\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"group\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"2-10947569-pccd0x\",\n            \"bin_id\": \"1-10944bc2-pc44f9\",\n            \"group_id\": \"1-10944bc2-pc44f9\",\n            \"name\": \"New Folder - UPDATED 2\",\n            \"created_by\": \"5-98e68eccf6-vs0z04\",\n            \"updated_by\": \"5-a0baa0cee8-vz3hhm\",\n            \"created_at\": \"2023-10-25T12:00:41.000Z\",\n            \"updated_at\": \"2023-10-25T12:05:39.000Z\",\n            \"deleted_at\": null,\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-d1dca9c78c03ec33b6e64cb28eb015216ac1206f\",\n            \"groups\": [],\n            \"files\": []\n        }\n    ]\n}"},{"id":"5ec8e18b-8740-40f0-9bfd-773e00afa131","name":"404 - Group Not Found","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:19:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"45-S/THRBtfZskCtaEzq+LQMmcfOl4\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"group 2-1 was not found\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"c2668203-f55d-4f0a-a01e-10fd7191e70f"},{"name":"Update Group","id":"2dd8892b-3101-af64-49c2-34f3979c39d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>new name of the folder</p>\n","type":"text"},{"key":"group_id","value":"","description":"<p>group_id of the parent group</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}","description":"<p>Update group name and parent group.</p>\n<p><strong>Body:</strong> form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>[string] <strong>Required</strong>. New name of the group</td>\n</tr>\n<tr>\n<td>group_id</td>\n<td>[id] <strong>Required</strong>. The group_id of the parent group. This can be the current group_id value of the group record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["group","{{group_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"group_id"}]}},"response":[{"id":"fafe1719-4092-4b87-bc9e-2f80ad9f172e","name":"200 - Update Group","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"New Group Name","description":"new name of the folder","type":"text"},{"key":"group_id","value":"{{group_id}}","description":"group_id of the parent group","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:58:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"9e-UuT/e0918GzpZtcCHqHZnoZr61k\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated group New Group Name\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"2-10947569-pccd0x\",\n            \"name\": \"New Group Name\",\n            \"group_id\": \"2-10947569-pccd0x\"\n        }\n    ]\n}"}],"_postman_id":"2dd8892b-3101-af64-49c2-34f3979c39d0"},{"name":"Delete Group","id":"a25f2562-1c3d-9600-3301-21a6666ca526","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}","description":"<p>Delete a group</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["group","{{group_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"group_id"}]}},"response":[{"id":"23f3f6d8-ae47-4958-bd1d-d5b6667c15ef","name":"200 - Delete Group","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/group/{{group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:27:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"46-MmmKX8zhxtTBeJMh4bmjWBqF/Ao\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted group 2-10ea25ce-4cj695\",\n    \"status\": \"OK\",\n    \"code\": 200\n}"}],"_postman_id":"a25f2562-1c3d-9600-3301-21a6666ca526"}],"id":"f8ca9f18-b49f-14af-7b59-2cf09a8224cf","description":"<p>Groups are virtual tags that group together files. This is used to organize the frontend to create a file system experience.</p>\n","event":[{"listen":"prerequest","script":{"id":"22193a3f-4b57-43d7-8afa-ee49e6cb5f40","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bee1e474-ec44-4c02-994f-c682156a07ce","type":"text/javascript","exec":[""]}}],"_postman_id":"f8ca9f18-b49f-14af-7b59-2cf09a8224cf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}},{"name":"File","item":[{"name":"Create File","id":"101761f2-2950-25ff-4211-957ca5d918b0","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"","description":"<p>[id] Required. Bin ID</p>\n","type":"text"},{"key":"group_id","value":"","description":"<p>[id] Optional. Group ID</p>\n","type":"text"},{"key":"filename","value":"","description":"<p>[string] Required. Filename</p>\n","type":"text"},{"key":"createdBy","value":"","description":"<p>[string] Optional. Legacy User</p>\n","type":"text"},{"key":"cdnUrl","value":"","description":"<p>[string] Optional. CDN URL</p>\n","type":"text"},{"key":"title","value":"","description":"<p>[string] Optional. Title/label of the file</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file","description":"<p>Create a file</p>\n<p><strong>Body</strong>: form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bin_id</td>\n<td>[id] Required. Bin ID</td>\n</tr>\n<tr>\n<td>group_id</td>\n<td>[id] Optional. Group ID</td>\n</tr>\n<tr>\n<td>filename</td>\n<td>[string] Required. Filename</td>\n</tr>\n<tr>\n<td>createdBy</td>\n<td>[string] Optional. Legacy User ZUID (optional) legacy id of the user.</td>\n</tr>\n<tr>\n<td>cdnUrl</td>\n<td>[string] Optional. CDN URL. If not passed, the CDN base URL of the bin will be used.</td>\n</tr>\n<tr>\n<td>title</td>\n<td>[string] Optional. Title/label of the file</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file"],"host":["{{media_manager_url}}"],"query":[],"variable":[]}},"response":[{"id":"1009e980-83bd-4141-81b8-476c266d82c3","name":"200 - Create File in a Bin","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"filename","value":"filenametest.json","description":"[string] Required. Filename","type":"text"},{"key":"createdBy","value":"","description":"[string] Optional. Legacy User","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Optional. CDN URL","type":"text"},{"key":"title","value":"","description":"[string] Optional. Title/label of the file","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 11:58:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"125-JQ/Bp9QOYnWdJmYYCeYvycaU98g\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file filenametest.json\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-10ea2680-wxf3tp\",\n        \"bin_id\": \"1-f6a090d-6fxfs2\",\n        \"group_id\": \"1-f6a090d-6fxfs2\",\n        \"filename\": \"filenametest.json\",\n        \"title\": \"filenametest.json\",\n        \"url\": \"https://zsh488.media.zestyio.com/filenametest.json\",\n        \"type\": \"file\"\n    }\n}"},{"id":"34c4cdda-7826-4bf0-be72-fcbeb847517c","name":"200 - Create File in a Group","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"{{group_id}}","description":"[id] Optional. Group ID","type":"text"},{"key":"filename","value":"filenametest2.json","description":"[string] Required. Filename","type":"text"},{"key":"createdBy","value":"","description":"[string] Optional. Legacy User","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Optional. CDN URL","type":"text"},{"key":"title","value":"","description":"[string] Optional. Title/label of the file","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:00:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"298"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"12a-AhvUjubZPXRM5G3nPtE02ztq4og\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file filenametest2.json\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-10ea26d4-k11krh\",\n        \"bin_id\": \"1-f6a090d-6fxfs2\",\n        \"group_id\": \"2-10947569-pccd0x\",\n        \"filename\": \"filenametest2.json\",\n        \"title\": \"filenametest2.json\",\n        \"url\": \"https://zsh488.media.zestyio.com/filenametest2.json\",\n        \"type\": \"file\"\n    }\n}"},{"id":"4b23b59c-45d4-4593-b414-9577f2c9716d","name":"200 - Create File with createdBy","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"filename","value":"filenametest3.json","description":"[string] Required. Filename","type":"text"},{"key":"createdBy","value":"Matthew","description":"[string] Optional. Legacy User","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Optional. CDN URL","type":"text"},{"key":"title","value":"","description":"[string] Optional. Title/label of the file","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:00:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"297"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"129-uhOWBWiannHFc4Mdv5yWsXGNfws\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file filenametest3.json\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-10ea26e1-f927cb\",\n        \"bin_id\": \"1-f6a090d-6fxfs2\",\n        \"group_id\": \"1-f6a090d-6fxfs2\",\n        \"filename\": \"filenametest3.json\",\n        \"title\": \"filenametest3.json\",\n        \"url\": \"https://zsh488.media.zestyio.com/filenametest3.json\",\n        \"type\": \"file\"\n    }\n}"},{"id":"23e44fcf-2609-492d-9f03-ae143fb46f0d","name":"200 - Create File with CDN URL","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"filename","value":"filenametest4.json","description":"[string] Required. Filename","type":"text"},{"key":"createdBy","value":"","description":"[string] Optional. Legacy User","type":"text"},{"key":"cdnUrl","value":"{{cdn_url}}","description":"[string] Optional. CDN URL","type":"text"},{"key":"title","value":"","description":"[string] Optional. Title/label of the file","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:00:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"279"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"117-p15QpTZK9ExQs6xQiCvBMz0qYps\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file filenametest4.json\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-10ea26f3-vsj3ht\",\n        \"bin_id\": \"1-f6a090d-6fxfs2\",\n        \"group_id\": \"1-f6a090d-6fxfs2\",\n        \"filename\": \"filenametest4.json\",\n        \"title\": \"filenametest4.json\",\n        \"url\": \"https://testcdn.media.zestyio.com\",\n        \"type\": \"file\"\n    }\n}"},{"id":"f8e07eb5-79f6-4d04-bbb6-a3f90ec6a0f0","name":"200 - Create File with Title","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"","description":"[id] Optional. Group ID","type":"text"},{"key":"filename","value":"filenametest5.json","description":"[string] Required. Filename","type":"text"},{"key":"createdBy","value":"","description":"[string] Optional. Legacy User","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Optional. CDN URL","type":"text"},{"key":"title","value":"Test Title","description":"[string] Optional. Title/label of the file","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:01:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"289"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"121-JauBhAOB3e0SEib7MPwAb6ZlPaA\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file filenametest5.json\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-10ea2705-81hzj0\",\n        \"bin_id\": \"1-f6a090d-6fxfs2\",\n        \"group_id\": \"1-f6a090d-6fxfs2\",\n        \"filename\": \"filenametest5.json\",\n        \"title\": \"Test Title\",\n        \"url\": \"https://zsh488.media.zestyio.com/filenametest5.json\",\n        \"type\": \"file\"\n    }\n}"}],"_postman_id":"101761f2-2950-25ff-4211-957ca5d918b0"},{"name":"Get File","id":"f400371f-8e10-14a2-4bec-11e40427e9e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}","description":"<p>Fetch a file by File ID (in ZUID format).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","{{file_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"file_id"}]}},"response":[{"id":"128da446-9891-45e0-ad97-5f9cae4a245f","name":"200 - Get File","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:01:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"20f-VK4l9k9/rN4Zd3hwlzuVR+Qic50\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Files\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"3-109453a2-s06f5t\",\n            \"bin_id\": \"1-10944bc2-pc44f9\",\n            \"group_id\": \"1-10944bc2-pc44f9\",\n            \"filename\": \"filenametest.json\",\n            \"title\": \"\",\n            \"url\": \"https://jxbh3x.media.zestyio.com/filenametest.json\",\n            \"created_by\": \"5-98e68eccf6-vs0z04\",\n            \"updated_by\": \"5-98e68eccf6-vs0z04\",\n            \"created_at\": \"2023-10-25T09:36:34.000Z\",\n            \"updated_at\": \"2023-10-25T09:36:34.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null,\n            \"storage_driver\": \"gcp\",\n            \"storage_name\": \"zesty-d1dca9c78c03ec33b6e64cb28eb015216ac1206f\"\n        }\n    ]\n}"},{"id":"c143c7a8-fb62-403a-8db7-7e94bd32760f","name":"404 - File Not Found","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:19:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"3c-hEFvsdwnlS7U++H9TW/WVce4Xr4\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"File not found\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"f400371f-8e10-14a2-4bec-11e40427e9e6"},{"name":"Update File","id":"3f4912ac-9559-35e2-d467-904d13960966","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"filename","value":"","description":"<p>[string] Optional. Filename</p>\n","type":"text"},{"key":"group_id","value":"","description":"<p>[string] Optional. Group ID</p>\n","type":"text"},{"key":"title","value":"","description":"<p>[string] Optional. Title</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}","description":"<p>Update file name and and optionally update parent group or title</p>\n<p><strong>Body</strong>: form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filename</td>\n<td>[string] Optional. New Filename</td>\n</tr>\n<tr>\n<td>group_id</td>\n<td>[string] Optional. New Parent Group</td>\n</tr>\n<tr>\n<td>title</td>\n<td>[string] Optional. New Title</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","{{file_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"3-f6a3a42-286j85","key":"file_id"}]}},"response":[{"id":"dd9464a1-f68f-42bf-8472-b7f65a41e8f2","name":"200 - Update File Group ID","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"filename","value":"","description":"[string] Optional. Filename","type":"text"},{"key":"group_id","value":"{{group_id}}","description":"[string] Optional. Group ID","type":"text"},{"key":"title","value":"","description":"[string] Optional. Title","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:04:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"fd-NFHlKd3POhswxfstY5gGKu39QNo\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated file filenametest5.json\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"3-f6a3a42-286j85\",\n            \"group_id\": \"2-10947569-pccd0x\",\n            \"title\": \"new title test\",\n            \"filename\": \"filenametest5.json\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest5.json\"\n        }\n    ]\n}"},{"id":"04d2beb4-4ee4-4a77-8203-59e506b18e98","name":"200 - Update File Title","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"filename","value":"","description":"[string] Optional. Filename","type":"text"},{"key":"group_id","value":"","description":"[string] Optional. Group ID","type":"text"},{"key":"title","value":"New Title","description":"[string] Optional. Title","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 12:04:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"f8-cEpFvtMzWN6EwqUnAoEu+7gn7V4\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated file filenametest5.json\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"3-f6a3a42-286j85\",\n            \"group_id\": \"2-10947569-pccd0x\",\n            \"title\": \"New Title\",\n            \"filename\": \"filenametest5.json\",\n            \"url\": \"https://zsh488.media.zestyio.com/filenametest5.json\"\n        }\n    ]\n}"}],"_postman_id":"3f4912ac-9559-35e2-d467-904d13960966"},{"name":"Delete File","id":"d15396c1-6083-e2c3-60f8-5335f5cca14b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}","description":"<p>Delete a File</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","{{file_id}}"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"file_id"}]}},"response":[{"id":"ccfd6383-1743-4c4f-9b26-34cb177432f7","name":"200 - Delete File","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:25:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"42-0wmeJSw2s5Os2x0khl7vedMKtDQ\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"1 files deleted and purging\",\n    \"status\": \"OK\",\n    \"code\": 200\n}"},{"id":"e65914d8-9413-47a4-860e-f7e2f10388ad","name":"404 - File Not Found","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:26:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"53-Bnea3KSUP4BGaXC3ZV0JuChtIbQ\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"File was not found: 3-10ea2680-wxf3tp\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"d15396c1-6083-e2c3-60f8-5335f5cca14b"}],"id":"0f67d7d5-e29f-26fe-2888-bccc89f18dea","description":"<p>Files are media items that can be stored in a group or in a bin.</p>\n","_postman_id":"0f67d7d5-e29f-26fe-2888-bccc89f18dea","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}},{"name":"File Modification","item":[{"name":"Create Modified File","id":"70518576-7acd-be35-53cf-ef2a066ab031","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"","description":"<p>[id] Required. File ID</p>\n","type":"text"},{"key":"bin_id","value":"","description":"<p>[id] Required. Bin ID</p>\n","type":"text"},{"key":"title","value":"","description":"<p>[id] Required. Title</p>\n","type":"text"},{"key":"filename","value":"","description":"<p>[string] Required. Filename</p>\n","type":"text"},{"key":"cdnUrl","value":"","description":"<p>[string] Required if storageUrl is NOT in post body. CDN URL</p>\n","type":"text"},{"key":"storageUrl","value":"","description":"<p>[string] Required if cdnUrl is NOT in post body. Storage URL</p>\n","type":"text"},{"key":"actions_hash","value":"","description":"<p>[string] Required. Hash of actions to be sent to modify service.</p>\n","type":"text"},{"key":"created_by","value":"","description":"<p>[string] Optional. Legacy User</p>\n","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified","description":"<p>Created a Modified File.</p>\n<p><strong>Body</strong>: form-data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>file_id</td>\n<td>[id] <strong>Required</strong>. File ID</td>\n</tr>\n<tr>\n<td>filename</td>\n<td>[string] <strong>Required</strong>. Filename</td>\n</tr>\n<tr>\n<td>bin_id</td>\n<td>[id] <strong>Required</strong>. Bin ID</td>\n</tr>\n<tr>\n<td>cdnUrl</td>\n<td>[string] <strong>Required</strong> if storageUrl is NOT in post body. CDN URL</td>\n</tr>\n<tr>\n<td>storageUrl</td>\n<td>[string] <strong>Required</strong> if cdnUrl is NOT in post body. Storage URL</td>\n</tr>\n<tr>\n<td>actions_hash</td>\n<td>[string] <strong>Optional</strong>. Hash of actions to be sent to modify service.</td>\n</tr>\n<tr>\n<td>created_by</td>\n<td>[string] <strong>Optional</strong>. Legacy User</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","modified"],"host":["{{media_manager_url}}"],"query":[],"variable":[]}},"response":[{"id":"d5bcbfbd-d888-47e5-a0d7-08694b8ae966","name":"201 - Create Modified File","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"{{file_id}}","description":"[id] Required. File ID","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"title","value":"renamed.jpg","description":"[id] Required. Title","type":"text"},{"key":"filename","value":"renamed.jpg","description":"[string] Required. Filename","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Required if storageUrl is NOT in post body. CDN URL","type":"text"},{"key":"storageUrl","value":"{{storage_url}}","description":"[string] Required if cdnUrl is NOT in post body. Storage URL","type":"text"},{"key":"actions_hash","value":"1234","description":"[string] Optional. Hash of actions to be sent to modify service.","type":"text"},{"key":"created_by","value":"","description":"[string] Optional. Legacy User","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sat, 30 Dec 2023 08:44:26 GMT"},{"key":"Content-Type","value":"application/json","description":""},{"key":"Content-Length","value":"150"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.fc436d95368b952a7c29276241a20bf3.png\",\n    \"status\": \"OK\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"3-34b0d8e-u5wtc\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"group_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.fc436d95368b952a7c29276241a20bf3.png\",\n        \"title\": \"zesty-logo.fc436d95368b952a7c29276241a20bf3.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.fc436d95368b952a7c29276241a20bf3.png\"\n    }\n}"},{"id":"a2b99f6a-3341-412a-9ee0-a9a49de15baf","name":"400 - Missing File Storage URL and CDN URL","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"{{file_id}}","description":"[id] Required. File ID","type":"text"},{"key":"filename","value":"rocketleague_xbox_20151203_12_hd-1650x880.jpg","description":"[string] Required. Filename","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"cdnUrl","value":"","description":"[string] Required if storageUrl is NOT in post body. CDN URL","type":"text"},{"key":"storageUrl","value":"","description":"[string] Required if cdnUrl is NOT in post body. Storage URL","type":"text"},{"key":"actions_hash","value":"","description":"[string] Optional. Hash of actions to be sent to modify service.","type":"text"},{"key":"created_by","value":"","description":"[string] Optional. Legacy User","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:46:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"52-VLnRGKwDT5ADNO6CQv6xCE7Wq+A\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing file storageUrl and cdnUrl\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"},{"id":"598b3f13-5a76-49ae-8f0a-7706899d5231","name":"400 - Missing Bin ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"{{file_id}}","description":"[id] Required. File ID","type":"text"},{"key":"filename","value":"rocketleague_xbox_20151203_12_hd-1650x880.jpg","description":"[string] Required. Filename","type":"text"},{"key":"bin_id","value":"","description":"[id] Required. Bin ID","type":"text"},{"key":"cdnUrl","value":"{{cdn_url}}","description":"[string] Required if storageUrl is NOT in post body. CDN URL","type":"text"},{"key":"storageUrl","value":"","description":"[string] Required if cdnUrl is NOT in post body. Storage URL","type":"text"},{"key":"actions_hash","value":"","description":"[string] Optional. Hash of actions to be sent to modify service.","type":"text"},{"key":"created_by","value":"","description":"[string] Optional. Legacy User","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:47:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"3e-2XdogA3YN969br05iPvANkka6Ts\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing Bin ID\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"},{"id":"1bed3ebc-35d4-4dd1-86d9-7250fa9facc3","name":"400 - Missing File ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"","description":"[id] Required. File ID","type":"text"},{"key":"filename","value":"rocketleague_xbox_20151203_12_hd-1650x880.jpg","description":"[string] Required. Filename","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"cdnUrl","value":"{{cdn_url}}","description":"[string] Required if storageUrl is NOT in post body. CDN URL","type":"text"},{"key":"storageUrl","value":"","description":"[string] Required if cdnUrl is NOT in post body. Storage URL","type":"text"},{"key":"actions_hash","value":"","description":"[string] Optional. Hash of actions to be sent to modify service.","type":"text"},{"key":"created_by","value":"","description":"[string] Optional. Legacy User","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:47:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"46-f08lhX3HTJUZjkVCFf/CYEvzvfQ\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing source file ID\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"},{"id":"4d6c95bb-6113-4071-abbc-c33a39176f28","name":"400 - Missing Filename","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_id","value":"{{file_id}}","description":"[id] Required. File ID","type":"text"},{"key":"filename","value":"","description":"[string] Required. Filename","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"cdnUrl","value":"{{cdn_url}}","description":"[string] Required if storageUrl is NOT in post body. CDN URL","type":"text"},{"key":"storageUrl","value":"","description":"[string] Required if cdnUrl is NOT in post body. Storage URL","type":"text"},{"key":"actions_hash","value":"","description":"[string] Optional. Hash of actions to be sent to modify service.","type":"text"},{"key":"created_by","value":"","description":"[string] Optional. Legacy User","type":"text"}]},"url":"{{protocol}}://{{media_manager_url}}/file/modified"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:47:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"41-MNwaIV4Ro4kzg8+e6npCo6o2Nlo\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing file name\",\n    \"status\": \"Bad Request\",\n    \"code\": 400\n}"}],"_postman_id":"70518576-7acd-be35-53cf-ef2a066ab031"},{"name":"Get Modified File","id":"2e48aa2b-cc89-f56f-e867-659e27f1384c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}/modified/:actionHash","description":"<p>Fetch a Modified File using the File ID and Action Hash (unique identifier associated with a file modification action)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","{{file_id}}","modified",":actionHash"],"host":["{{media_manager_url}}"],"query":[],"variable":[{"description":{"content":"<p>[id] Required. Action Hash</p>\n","type":"text/plain"},"type":"any","value":"","key":"actionHash"}]}},"response":[{"id":"120594ea-3e44-4074-a516-ec750cd54eb8","name":"200 - Get Modified File","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}/modified/:actionHash","protocol":"{{protocol}}","host":["{{media_manager_url}}"],"path":["file","{{file_id}}","modified",":actionHash"],"variable":[{"key":"actionHash","value":"d23f94f03b0b8f6168e97aefc4e147fb","description":"[id] Required. Action Hash"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:22:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"2b0-IyKz/+aIO4yrxNBfoQYGfeqJoYY\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Files\",\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": [\n        {\n            \"id\": \"4-b753f3a-y52fv\",\n            \"bin_id\": \"1-6c9618c-r26pt\",\n            \"file_id\": \"3-7344887-ba631\",\n            \"filename\": \"coffee-coffee-cup-porcelain-coffee-beans-144253.d23f94f03b0b8f6168e97aefc4e147fb.HkGrpHDe_.jpeg\",\n            \"title\": \"coffee-coffee-cup-porcelain-coffee-beans-144253.d23f94f03b0b8f6168e97aefc4e147fb.HkGrpHDe_.jpeg\",\n            \"url\": \"https://8xbq19z1.media.zestyio.com/coffee-coffee-cup-porcelain-coffee-beans-144253.d23f94f03b0b8f6168e97aefc4e147fb.HkGrpHDe_.jpeg\",\n            \"actions_hash\": \"d23f94f03b0b8f6168e97aefc4e147fb\",\n            \"created_by\": \"system\",\n            \"created_at\": \"2021-02-02T22:07:54.000Z\",\n            \"updated_at\": \"2021-02-02T22:07:54.000Z\",\n            \"deleted_at\": null,\n            \"deleted_from_storage_at\": null\n        }\n    ]\n}"},{"id":"badcec30-737b-4801-aa5e-59b75906000a","name":"404 - File Not Found","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{protocol}}://{{media_manager_url}}/file/{{file_id}}/modified/:actionHash","protocol":"{{protocol}}","host":["{{media_manager_url}}"],"path":["file","{{file_id}}","modified",":actionHash"],"variable":[{"key":"actionHash","value":"1fc97b3c326478bf6afcb60e52679656","description":"[id] Required. Action Hash"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Dec 2023 13:16:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"37-gPHirRW42MTG3tcrumWv4kV64wU\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not found\",\n    \"status\": \"Not Found\",\n    \"code\": 404\n}"}],"_postman_id":"2e48aa2b-cc89-f56f-e867-659e27f1384c"}],"id":"fb499549-9f20-11a9-8752-7440b9db9719","_postman_id":"fb499549-9f20-11a9-8752-7440b9db9719","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}}],"id":"358da090-1875-cf66-1424-cb8e4e69462b","description":"<h2 id=\"media-manager-service\">Media Manager Service</h2>\n<p>Its job is to communicate with the database. The majority of endpoint we used commonly are in this service. This service orchestrates all the media services.</p>\n<p><a href=\"https://media-manager.api.zesty.io/\">https://media-manager.api.zesty.io</a></p>\n","event":[{"listen":"prerequest","script":{"id":"faaf533f-0331-4606-ada8-813ce4a00ccd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"17efff70-da3e-4966-a029-f20bcbdbf0c5","type":"text/javascript","exec":[""]}}],"_postman_id":"358da090-1875-cf66-1424-cb8e4e69462b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}},{"name":"Storage","item":[{"name":"Bucket Creation","id":"e394c3af-1fdc-5f70-7501-4ffded16dd9b","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"\",\n    \"storage_name\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/bucket","description":"<p>Create a bucket.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><strong>Body:</strong> raw JSON</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"{{protocol}}","path":["bucket"],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"df669889-9fe8-4592-be98-6d8ff1433448","name":"201 - Bucket Creation","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{storage_name}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/bucket"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 19 Jan 2024 00:11:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"160"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"a0-zJapr70S8RBMKSatctMOqNczv94\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created Bucket\",\n    \"status\": \"Created\",\n    \"data\": {\n        \"name\": \"test_storage_gcp_2\",\n        \"storageUrl\": \"https://test_storage_gcp_2.storage.googleapis.com\"\n    },\n    \"code\": 201\n}"},{"id":"6893adde-0270-4c7e-a5cb-e294825fe703","name":"401 - No Permission To Create Bucket","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{storage_name}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/bucket"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:08:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"d44030ca-973d-4c1b-a66b-1bcc3cb1b8f1","name":"409 - Bucket Name Already Exists","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{existing_storage_name}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/bucket"},"status":"Conflict","code":409,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:01:29 GMT"},{"key":"Content-Length","value":"0"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e394c3af-1fdc-5f70-7501-4ffded16dd9b"},{"name":"File Creation","id":"ad7e82e3-e314-6b4e-3fbf-5c48ff5a2181","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"storage_driver","value":"","description":"<p>[string] Optional. Storage Provider. gcp or rackspace</p>\n","type":"text"},{"key":"bin_id","value":"","description":"<p>[id] Required. Bin ID</p>\n","type":"text"},{"key":"group_id","value":"","description":"<p>[id] Required. Group ID</p>\n","type":"text"},{"key":"user_id","value":"","description":"<p>[id] Required. User ID</p>\n","type":"text"},{"key":"","description":"<p>[File] Required. File to be uploaded</p>\n","type":"file"}]},"url":"{{protocol}}://{{media_storage_url}}/upload/:provider/:bucket_name","description":"<p>Create a file.</p>\n<p>In the URI:<br /><code>bucketName</code> is accessed by media manager service /sites/site_id/bins<br /><code>provider</code> is the driver name (gcp or rackspace)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Optional</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["upload",":provider",":bucket_name"],"host":["{{media_storage_url}}"],"query":[],"variable":[{"description":{"content":"<p>[string] Required. Storage Provider (gcp or rackspace)</p>\n","type":"text/plain"},"type":"any","value":"","key":"provider"},{"description":{"content":"<p>[string] Required. Name of bucket</p>\n","type":"text/plain"},"type":"any","value":"","key":"bucket_name"}]}},"response":[{"id":"61193701-889c-4bba-b41f-3953bb7d272c","name":"201 - File Creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"storage_driver","value":"","description":"[string] Optional. Storage Provider. gcp or rackspace","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"user_id","value":"{{user_zuid}}","description":"[id] Required. Group ID","type":"text"},{"key":"group_id","value":"{{bin_id}}","description":"[id] Required. User ID","type":"text"},{"key":"","description":"[File] Required. File to be uploaded","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","src":"/Users/matthewezralabre/Desktop/Screenshot 2024-01-08 at 10.15.50 AM.png"}]},"url":{"raw":"{{protocol}}://{{media_storage_url}}/upload/:provider/:bucket_name","protocol":"{{protocol}}","host":["{{media_storage_url}}"],"path":["upload",":provider",":bucket_name"],"variable":[{"key":"provider","value":"gcp","description":"[string] Required. Storage Provider (gcp or rackspace)"},{"key":"bucket_name","value":"{{bucket_name}}","description":"[string] Required. Name of bucket"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 08 Jan 2024 02:42:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"280"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"118-eandqVSxTTGkh7ZTYEdrQKsDz88\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"File uploaded\",\n    \"status\": \"Created\",\n    \"data\": [\n        {\n            \"id\": \"3-10f6d2f9-39cjr0\",\n            \"bin_id\": \"1-6c9618c-r26pt\",\n            \"group_id\": \"1-6c9618c-r26pt\",\n            \"filename\": \"AM.HJWWbJKO6.png\",\n            \"title\": \"AM.HJWWbJKO6.png\",\n            \"url\": \"https://8xbq19z1.media.zestyio.com/AM.HJWWbJKO6.png\",\n            \"type\": \"file\"\n        }\n    ],\n    \"code\": 201\n}"},{"id":"86531573-bdbf-4488-a3b8-3eec617e54cf","name":"403 - No Permission to Upload on Bucket","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"storage_driver","value":"","description":"[string] Optional. Storage Provider. gcp or rackspace","type":"text"},{"key":"bin_id","value":"{{bin_id}}","description":"[id] Required. Bin ID","type":"text"},{"key":"group_id","value":"{{bin_id}}","description":"[id] Required. Group ID","type":"text"},{"key":"user_id","value":"{{user_zuid}}","description":"[id] Required. User ID","type":"text"},{"key":"","description":"[File] Required. File to be uploaded","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","src":"/Users/matthewezralabre/Desktop/Screenshot 2024-01-08 at 10.15.50 AM.png"}]},"url":{"raw":"{{protocol}}://{{media_storage_url}}/upload/:provider/:bucket_name","protocol":"{{protocol}}","host":["{{media_storage_url}}"],"path":["upload",":provider",":bucket_name"],"variable":[{"key":"provider","value":"gcp","description":"[string] Required. Storage Provider (gcp or rackspace)"},{"key":"bucket_name","value":"{{bucket_name}}","description":"[string] Required. Name of bucket"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 08 Jan 2024 02:43:02 GMT"},{"key":"Content-Length","value":"0"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ad7e82e3-e314-6b4e-3fbf-5c48ff5a2181"},{"name":"File Copy","id":"860a0a99-50ae-5e53-bce1-4a124f0b0d40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"storageProvider\": \"\",\n    \"bucketName\": \"\",\n    \"filenamesUrls\": {\n        {{file_id}}: [\"fileName\", \"sourceUrl\"]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file/copy","description":"<p>Copy a file from a remote URL into the storage bucket.<br />This is admittedly not as simple as it should be because I've added in allowing some copies to fail while others succeed as part of the same request.</p>\n<p><strong>Body</strong>: raw JSON</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"storageProvider\": \"\",\n    \"bucketName\": \"\",\n    \"filenamesUrls\": {\n        {{file_id}}: [\"fileName\", \"sourceUrl\"]\n    }\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storageProvider</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n<tr>\n<td>bucketName</td>\n<td>[string] <strong>Required</strong>. Name of storage bucket pulled off the media manager /bins endpoint</td>\n</tr>\n<tr>\n<td>filenamesUrls</td>\n<td>[object] Required. Filename and Source URL in this format: <code>{file_id: [fileName, sourceUrl]}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file","copy"],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"5591a54d-5648-45bd-a110-40d23e6806c3","name":"201 - File Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"storageProvider\": \"gcp\",\n    \"bucketName\": \"{{bucket_name}}\",\n    \"filenamesUrls\": {\n        \"{{file_id}}\": [\"zesty-logo.png\", \"https://xff3kv.media.zestyio.com/zesty-logo.png\"]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file/copy"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:16:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"314"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"13a-P3z/ZgoZqYpOK6iU2QSHtzU0Pmg\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Results returned\",\n    \"status\": \"Created\",\n    \"data\": {\n        \"3-34b0d8e-u5wtc\": {\n            \"originalName\": \"zesty-logo.png\",\n            \"name\": \"zesty-logo.HkkTQSpvp.png\",\n            \"storageUrl\": \"https://zesty-a70d78eb1b2356e28e464bf46f9639a593bd0f16.storage.googleapis.com/zesty-logo.HkkTQSpvp.png\",\n            \"sizeBytes\": 18962,\n            \"mimetype\": \"image/png\"\n        }\n    },\n    \"code\": 201\n}"}],"_postman_id":"860a0a99-50ae-5e53-bce1-4a124f0b0d40"},{"name":"Health Endpoint","id":"41c8daf8-5195-f1a0-aef0-e27c9681ed6f","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_storage_url}}/","description":"<p>Check Health of Media Storage Service</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":[""],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"0831c2ee-8869-45b9-990c-daf02ee4772b","name":"200 - Health Endpoint","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{protocol}}://{{media_storage_url}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:22:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"3a-0yYDq2j+iNKQqe7kV4/FU5MkySo\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"healthy\",\n    \"status\": \"OK\",\n    \"data\": null,\n    \"code\": 200\n}"}],"_postman_id":"41c8daf8-5195-f1a0-aef0-e27c9681ed6f"},{"name":"File Update","id":"74fc65f1-6963-90c9-190b-c3f6eb6856f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"storage_name\",\n    \"prev_name\": \"prev_name\",\n    \"next_name\": \"next_name\" \n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file","description":"<p>Update name of file.</p>\n<p><strong>Body</strong>: raw JSON</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is<code>gcp</code></td>\n</tr>\n<tr>\n<td>storage_name</td>\n<td>[string] <strong>Required</strong>. Name of Storage Bucket (from media bins)</td>\n</tr>\n<tr>\n<td>prev_name</td>\n<td>[string] <strong>Required</strong>. Previous name of file</td>\n</tr>\n<tr>\n<td>next_name</td>\n<td>[string] <strong>Required</strong>. New name of file</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file"],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"1c152171-50d1-4aef-9f82-ef9d35b86449","name":"200 - File Update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{bucket_name}}\",\n    \"prev_name\": \"zesty-logo.png\",\n    \"next_name\": \"zesty_logo.png\" \n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:17:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"e2-cZgVhMqw1V02EUFZQqhc1iGa/RI\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated zesty-logo.png | zesty-a70d78eb1b2356e28e464bf46f9639a593bd0f16 | gcp\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"url\": \"https://zesty-a70d78eb1b2356e28e464bf46f9639a593bd0f16.storage.googleapis.com/zesty_logo.png\"\n    },\n    \"code\": 200\n}"}],"_postman_id":"74fc65f1-6963-90c9-190b-c3f6eb6856f4"},{"name":"Bucket Deletion","id":"25c328e4-8f5d-d056-e003-c456da0ccda6","request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/bucket/:bucket_name","description":"<p>Delete a bucket and all of the files it contains.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><strong>Body</strong>: raw JSON</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"{{protocol}}","path":["bucket",":bucket_name"],"host":["{{media_storage_url}}"],"query":[],"variable":[{"description":{"content":"<p>[string] Required. Name of bucket</p>\n","type":"text/plain"},"type":"any","value":null,"key":"bucket_name"}]}},"response":[{"id":"47ac6c7c-b7d0-41d4-876c-012741ebf5ca","name":"200 - Bucket Deletion","originalRequest":{"method":"DELETE","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{protocol}}://{{media_storage_url}}/bucket/:bucket_name","protocol":"{{protocol}}","host":["{{media_storage_url}}"],"path":["bucket",":bucket_name"],"variable":[{"key":"bucket_name","value":"{{bucket_name}}","description":"[string] Required. Name of bucket"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:19:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1b2-yXuauz3E/cdMADv1WmJqGW5eKA8\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"headers\": {\n                \"cache-control\": \"no-cache, no-store, max-age=0, must-revalidate\",\n                \"content-length\": \"0\",\n                \"content-type\": \"application/json\",\n                \"date\": \"Sat, 30 Dec 2023 07:19:23 GMT\",\n                \"expires\": \"Mon, 01 Jan 1990 00:00:00 GMT\",\n                \"pragma\": \"no-cache\",\n                \"server\": \"UploadServer\",\n                \"vary\": \"Origin, X-Origin\",\n                \"x-guploader-uploadid\": \"ABPtcPqEsxuLmVdDyJg_Q1gLXl-CVuqhZ-9HO5Z4EaZZMF6M8s16qbD5qpGWDF-2YTIaO1dODK8\"\n            }\n        }\n    ],\n    \"code\": 200\n}"},{"id":"91f77b50-f0d7-4ca6-8db9-aef6b2cdda04","name":"401 - No Permission To Delete Bucket","originalRequest":{"method":"DELETE","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}","disabled":true},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{protocol}}://{{media_storage_url}}/bucket/:bucket_name","protocol":"{{protocol}}","host":["{{media_storage_url}}"],"path":["bucket",":bucket_name"],"variable":[{"key":"bucket_name","value":"{{bucket_name}}","description":"[string] Required. Name of bucket"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:19:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"}],"_postman_id":"25c328e4-8f5d-d056-e003-c456da0ccda6"},{"name":"File Delete","id":"760baf8c-6ed5-58dd-daf0-4e06b6a19700","request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"storage_name\",\n    \"filename\": \"filename\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file","description":"<p>Delete a file</p>\n<p><strong>Body:</strong> raw JSON</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n<tr>\n<td>storage_name</td>\n<td>[string] <strong>Required</strong>. Name of Storage Bucket (from media bins)</td>\n</tr>\n<tr>\n<td>filename</td>\n<td>[string] <strong>Required</strong>. Name of file to be deleted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["file"],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"ae796c71-74ce-46d4-9754-06bd07aa7de7","name":"200 - File Delete","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{bucket_name}}\",\n    \"filename\": \"Screen-Shot-2016-09-26-at-6.09.14-PM.png\"\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/file"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:20:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"220-LZUh9gTxJC2YosszhetFzcDRuCc\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted file \\\"Screen-Shot-2016-09-26-at-6.09.14-PM.png\\\" | zesty-a70d78eb1b2356e28e464bf46f9639a593bd0f16 | gcp\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"headers\": {\n            \"cache-control\": \"no-cache, no-store, max-age=0, must-revalidate\",\n            \"content-length\": \"0\",\n            \"content-type\": \"application/json\",\n            \"date\": \"Sat, 30 Dec 2023 07:20:42 GMT\",\n            \"expires\": \"Mon, 01 Jan 1990 00:00:00 GMT\",\n            \"pragma\": \"no-cache\",\n            \"server\": \"UploadServer\",\n            \"vary\": \"Origin, X-Origin\",\n            \"x-guploader-uploadid\": \"ABPtcPpeKlNR6r3YUTqm4QX0wBpuehy98EPwNNXT-i7tvFgpdGIwxM6w9Kf00ckDJqjdOxk6nUM\"\n        }\n    },\n    \"code\": 200\n}"}],"_postman_id":"760baf8c-6ed5-58dd-daf0-4e06b6a19700"},{"name":"Batch Files Delete","id":"34f7cce0-e105-d363-bde9-18486d40195d","request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"storage_name\",\n    \"filenames\": [\"filename1\", \"filenames2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/files","description":"<p>Deletes multiple files at once</p>\n<p><strong>Body:</strong> raw JSON</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>storage_driver</td>\n<td>[string] <strong>Required</strong>. Storage Provider. accepted value is <code>gcp</code></td>\n</tr>\n<tr>\n<td>storage_name</td>\n<td>[string] <strong>Required</strong>. Name of Storage Bucket (from media bins)</td>\n</tr>\n<tr>\n<td>filenames</td>\n<td>[array] <strong>Required</strong>. Name of files to be deleted, comma-separated</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}},"urlObject":{"protocol":"{{protocol}}","path":["files"],"host":["{{media_storage_url}}"],"query":[],"variable":[]}},"response":[{"id":"a1e156a4-8e8c-49d4-a733-27c6bffafca6","name":"200 - Batch Files Delete","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"storage_driver\": \"gcp\",\n    \"storage_name\": \"{{bucket_name}}\",\n    \"filenames\": [\"Screen-Shot-2016-09-26-at-6.10.54-PM.png\" ,\"Screen-Shot-2016-09-26-at-6.11.23-PM.png\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_storage_url}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:22:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-zesty-service","value":"media-upload-service"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"126-M4PPhvIClmVWxmcMUDjNkoM9kSg\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted files \\\"Screen-Shot-2016-09-26-at-6.10.54-PM.png, Screen-Shot-2016-09-26-at-6.11.23-PM.png\\\" | zesty-a70d78eb1b2356e28e464bf46f9639a593bd0f16 | gcp\",\n    \"status\": \"OK\",\n    \"data\": [\n        [],\n        [\n            \"Screen-Shot-2016-09-26-at-6.10.54-PM.png\",\n            \"Screen-Shot-2016-09-26-at-6.11.23-PM.png\"\n        ]\n    ],\n    \"code\": 200\n}"}],"_postman_id":"34f7cce0-e105-d363-bde9-18486d40195d"}],"id":"583ca7c5-0362-3f0c-20e6-be86c30ec31a","description":"<h2 id=\"media-storage-service\">Media Storage Service</h2>\n<p>Its job is to communicate with the storage provider.</p>\n<p><a href=\"https://media-storage.api.zesty.io/\">https://media-storage.api.zesty.io</a></p>\n","_postman_id":"583ca7c5-0362-3f0c-20e6-be86c30ec31a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}},{"name":"Modify","item":[{"name":"Modify","id":"6b883185-bfbe-43b4-9c1c-5272ca5990ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": {{file_id}},\n    \"actions_hash\": \"\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"crop\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify","description":"<p>Modify an image based on passed action/s.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><strong>Body</strong>: raw JSON</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"zuid\": {{file_id}},\n    \"actions_hash\": \"\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"crop\",\n        \"width\": \"100\",\n        \"height\": \"100\"\n    }\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>zuid</td>\n<td>[id] <strong>Required</strong>. File ID in ZUID Format.</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>[JSON] <strong>Required</strong>. Modify action details that will be done on the file. Accepts one or more value.</td>\n</tr>\n<tr>\n<td>actions.type</td>\n<td>[string] <strong>Required</strong>. Values accepted are <code>resize</code>, <code>blackandwhite</code>, <code>thumbnail</code>, <code>optimize</code>, <code>orient</code>, <code>crop</code>, and <code>fit</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"{{protocol}}","path":["modify"],"host":["{{media_modify_url}}"],"query":[],"variable":[]}},"response":[{"id":"46ad137b-0764-4b61-b978-5ea6ab1cc0af","name":"200 - Crop","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"3432\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"crop\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:23:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"10e-vONtYoOnc2MimkVzdpEgWzgfFI4\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.3432.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb3775-93glrn\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.3432.png\",\n        \"title\": \"zesty-logo.3432.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.3432.png\"\n    },\n    \"code\": 200\n}"},{"id":"8fde1e84-ceae-4e34-854f-60fb19e0fc4f","name":"200 - Fit","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"3432\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"fit\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:24:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"136-Mgh60lK5XM0fUgjAaewgyjQT5Ng\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.3432.SJJ2BBaDa.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb37a7-173dj8\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.3432.SJJ2BBaDa.png\",\n        \"title\": \"zesty-logo.3432.SJJ2BBaDa.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.3432.SJJ2BBaDa.png\"\n    },\n    \"code\": 200\n}"},{"id":"d22acbcc-0219-4ff8-ab87-a0c8a0424fd6","name":"200 - Resize","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"3432\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"resize\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:24:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"136-YjzijoOpnQQS0947+WGWrWHj+/0\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.3432.Syn6Sravp.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb37c4-qtr3dq\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.3432.Syn6Sravp.png\",\n        \"title\": \"zesty-logo.3432.Syn6Sravp.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.3432.Syn6Sravp.png\"\n    },\n    \"code\": 200\n}"},{"id":"e8683169-0369-4906-a842-4c15232b3f64","name":"200 - Black and White","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"54365\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"blackandwhite\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:25:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"112-GMTudXgdWWDtZJKyDaWh8K3RVfU\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.54365.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb37e4-svb360\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.54365.png\",\n        \"title\": \"zesty-logo.54365.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.54365.png\"\n    },\n    \"code\": 200\n}"},{"id":"5536ea6b-12be-4a63-8901-104d72ee5f4f","name":"200 - Thumbnail","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"54365\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"thumbnail\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:26:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"13a-clNf/z2SsGdGx46GyI3NvCrR3z8\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.54365.rJxGUBaPT.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb3808-bz1w6c\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.54365.rJxGUBaPT.png\",\n        \"title\": \"zesty-logo.54365.rJxGUBaPT.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.54365.rJxGUBaPT.png\"\n    },\n    \"code\": 200\n}"},{"id":"75d46d3a-69c7-40cf-8378-f58494c8685f","name":"200 - Optimize","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"3432\",\n    \"file_name\": \"\",\n    \"actions\": [\n        {\n            \"type\": \"optimize\",\n            \"quality\": \"100\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:26:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"136-3380aXnJYd2FvxclhAzCFJNbYWg\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.3432.HkG4IHTDa.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb382a-9m1t56\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.3432.HkG4IHTDa.png\",\n        \"title\": \"zesty-logo.3432.HkG4IHTDa.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.3432.HkG4IHTDa.png\"\n    },\n    \"code\": 200\n}"},{"id":"86444785-e4ed-460f-bfa4-4f80ad18ca1f","name":"200 - Orient","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"54365\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"orient\",\n        \"direction\": \"portrait\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:26:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"13a-qYpXa7KPVqAXWPkXZNtiU5UEYaU\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Created file zesty-logo.54365.B1LrIBaw6.png\",\n    \"status\": \"OK\",\n    \"data\": {\n        \"id\": \"4-10eb383e-b3nmtn\",\n        \"bin_id\": \"1-34b0d20-f0yr4\",\n        \"filename\": \"zesty-logo.54365.B1LrIBaw6.png\",\n        \"title\": \"zesty-logo.54365.B1LrIBaw6.png\",\n        \"type\": \"file\",\n        \"url\": \"https://xff3kv.media.zestyio.com/zesty-logo.54365.B1LrIBaw6.png\"\n    },\n    \"code\": 200\n}"},{"id":"141ee54f-e607-49e0-977c-b0ab8f43a28f","name":"401 - No Permission To use Modify Endpoint","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}","disabled":true},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"{{file_id}}\",\n    \"actions_hash\": \"3432\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"crop\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:27:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"602d361b-ed5a-47a6-baa5-abaa4a3c73bc","name":"404 - File Not Found","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n    \"zuid\": \"3-f7e06c1-4z4xbm\",\n    \"actions_hash\": \"54365\",\n    \"file_name\": \"\",\n    \"actions\": {\n        \"type\": \"thumbnail\",\n        \"width\": \"200\",\n        \"height\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_modify_url}}/modify"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:25:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"69-n1l4EaVHXjiY1Qb97swANe2Fun4\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Image URL not found/provided | 3-f7e06c1-4z4xbm\",\n    \"status\": \"Not Found\",\n    \"data\": null,\n    \"code\": 404\n}"}],"_postman_id":"6b883185-bfbe-43b4-9c1c-5272ca5990ee"}],"id":"b5a5de73-e174-ec19-9893-2e3dba24b769","description":"<h2 id=\"media-modify-service\">Media Modify Service</h2>\n<p>Its job is to manipulate images, get commands from manager, and make requests to storage.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><a href=\"https://media-modify.api.zesty.io\">https://media-modify.api.zesty.io</a></p>\n","auth":{"type":"noauth","isInherited":false},"_postman_id":"b5a5de73-e174-ec19-9893-2e3dba24b769"},{"name":"Resolver","item":[{"name":"Resolve File","id":"813165b7-fbf9-47e5-8e54-724915027a81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n\t\"items\": [\n\t\t\t\t{\t\n\t\t\t\t\t\"id\": {{file_id}},\n        \t\t\t\"actions\" : [\n\t\t\t            {\n\t\t\t                \"type\": \"getimage\",\n\t\t\t                \"options\": {\n\t\t\t                \t\"width\" : 300,\n\t\t\t                \t\"height\" : 300,\n\t\t\t                \t\"type\" : \"crop\"\n\t\t\t                }\n\t\t\t            }\n\t\t\t        ],\n        \t\t\t\"property\" : \"url\"\n\t\t\t\t}\n\t\t]\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_resolver_url}}/resolve","description":"<p>Execute and save modifications done on a file. Response will contain the public URL of the file with the the applied modifications on the file.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><strong>Format</strong>: raw JSON</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"items\": [\n                {    \n                    \"id\": {{file_id}},\n                    \"actions\" : [\n                        {\n                            \"type\": \"getimage\",\n                            \"options\": {\n                                \"width\" : 300,\n                                \"height\" : 300,\n                                \"type\" : \"crop\"\n                            }\n                        }\n                    ],\n                    \"property\" : \"url\"\n                }\n        ]\n}\n\n</code></pre>\n<p><strong>Body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n<th><strong>child description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>[id] <strong>Required</strong>. File ID in ZUID Format.</td>\n<td></td>\n</tr>\n<tr>\n<td>actions</td>\n<td>[json] <strong>Required</strong>. Actions done on the File.</td>\n<td>[string] <strong>Required</strong>. action</td>\n</tr>\n<tr>\n<td>property</td>\n<td>[string] <strong>Required.</strong> File URL</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"{{protocol}}","path":["resolve"],"host":["{{media_resolver_url}}"],"query":[],"variable":[]}},"response":[{"id":"f2e706c2-f374-42d4-af3e-a97f9927aa3c","name":"200 - Resolve Cropped File","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"{\n\t\"items\": [\n\t\t\t\t{\t\n\t\t\t\t\t\"id\": \"{{file_id}}\",\n        \t\t\t\"actions\" : [\n\t\t\t            {\n\t\t\t                \"type\": \"getimage\",\n\t\t\t                \"options\": {\n\t\t\t                \t\"width\" : 300,\n\t\t\t                \t\"height\" : 300,\n\t\t\t                \t\"type\" : \"crop\"\n\t\t\t                }\n\t\t\t            }\n\t\t\t        ],\n        \t\t\t\"property\" : \"url\"\n\t\t\t\t}\n\t\t]\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_resolver_url}}/resolve"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:28:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"ETag","value":"W/\"100-T2hPURARYJYBdEjpXgfHL056n7w\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Via","value":"1.1 google"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"3-34b0d8e-u5wtc\",\n            \"actions\": [\n                {\n                    \"type\": \"getimage\",\n                    \"options\": {\n                        \"width\": 300,\n                        \"height\": 300,\n                        \"type\": \"crop\"\n                    }\n                }\n            ],\n            \"property\": \"url\",\n            \"value\": \"https://media-resolver.api.dev.zesty.io/resource/096bc045caebfc36f6bc5440825380016ca1ee36\",\n            \"message\": \"temp url\"\n        }\n    ]\n}"}],"_postman_id":"813165b7-fbf9-47e5-8e54-724915027a81"},{"name":"Invalidate","id":"ee287b91-7baa-4d26-923d-db1398d7d57d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"[[\"{{file_id}}\",\"url\",\"*\"]]","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_resolver_url}}/invalidate","description":"<p>Bust the file URL from CDN to invalidate the public URL of the modified file.</p>\n<p>This API only allows Service to Service consumption. A zesty user cannot use this API.</p>\n<p><code>X-Service-Auth-Content</code> and <code>X-Service-Auth-Sig</code> custom headers are used to consume this API via Service to Service token.</p>\n<p><strong>Format</strong>: tuple</p>\n<p><code>[[zuid, type [, actionsHash]], [..], ..]</code></p>\n<ul>\n<li>if actionsHash is the string <code>\\*</code> , it is treated as a wildcard and all actions hashes are deleted for the given zuid and type. Keys without a actionsHash are not deleted.</li>\n<li>if actionsHash is <code>null</code>, <code>undefined</code>, or an <code>empty</code> string, a key without the actionsHash will be deleted so So if user wants to delete a zuid/type pair and all possible subkeys, user would submit two tuples like so: <code>[[zuid, type], [zuid, type, '\\*']]</code></li>\n</ul>\n<p><strong>Body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>file_zuid</td>\n<td>[id] <strong>Required</strong>. File ID in ZUID Format.</td>\n</tr>\n<tr>\n<td>URL</td>\n<td>[string] <strong>Required</strong>. URL</td>\n</tr>\n<tr>\n<td>actionHash</td>\n<td>[string] <strong>Required</strong>. Action Hash. value can be * or specific action hash</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"{{protocol}}","path":["invalidate"],"host":["{{media_resolver_url}}"],"query":[],"variable":[]}},"response":[{"id":"f578c63c-cd0b-4084-aab6-0e8595032abe","name":"200 - Invalidate","originalRequest":{"method":"POST","header":[{"key":"X-Service-Auth-Content","value":"{{X-Service-Auth-Content}}"},{"key":"X-Service-Auth-Sig","value":"{{X-Service-Auth-Sig}}"}],"body":{"mode":"raw","raw":"[[\"{{file_id}}\",\"url\",\"*\"]]","options":{"raw":{"language":"json"}}},"url":"{{protocol}}://{{media_resolver_url}}/invalidate"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 30 Dec 2023 07:29:38 GMT"},{"key":"Content-Length","value":"0"},{"key":"Via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ee287b91-7baa-4d26-923d-db1398d7d57d"},{"name":"Resolve File Dynamically","id":"49e32944-7d24-44a5-962c-b65bb600dcb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{APP_SID}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{protocol}}://{{media_resolver_url}}/resolve/{{file_id}}/getimage","description":"<p>Returns the modified version of the image without affecting the original image.</p>\n<p><strong>Params:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>name</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>[string] <strong>Required.</strong> Action Type. values can be <code>fit</code>and <code>crop</code>.</td>\n</tr>\n<tr>\n<td>options</td>\n<td>[string] <strong>Optional.</strong> width, height for the type</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note:</p>\n<p>The examples for this API does not show the actual response as this is not currently supported, but the expected response is the actual media returned by the API after the modification and returns a 200 status.</p>\n","urlObject":{"protocol":"{{protocol}}","path":["resolve","{{file_id}}","getimage"],"host":["{{media_resolver_url}}"],"query":[],"variable":[]}},"response":[{"id":"e06694b0-bd5f-4b50-aa82-c7806451e061","name":"200 - Resolve Cropped File","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{protocol}}://{{media_resolver_url}}/resolve/{{file_id}}/getimage?w=100&h=100&type=crop","protocol":"{{protocol}}","host":["{{media_resolver_url}}"],"path":["resolve","{{file_id}}","getimage"],"query":[{"key":"w","value":"100"},{"key":"h","value":"100"},{"key":"type","value":"crop"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"c8846ae2-1b18-4337-8bd0-5640e2f31248","name":"200 - Resolve Fit File","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{protocol}}://{{media_resolver_url}}/resolve/{{file_id}}/getimage?w=100&h=100&type=fit","protocol":"{{protocol}}","host":["{{media_resolver_url}}"],"path":["resolve","{{file_id}}","getimage"],"query":[{"key":"w","value":"100"},{"key":"h","value":"100"},{"key":"type","value":"fit"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"49e32944-7d24-44a5-962c-b65bb600dcb9"}],"id":"ff083543-d708-cb05-90eb-e0a0f5fefa47","description":"<h2 id=\"media-resolver-service\">Media Resolver Service</h2>\n<p>Its job it to get a media file ZUID and return the associated CDN path. This service is consumed everywhere we load media. It is the most heavily trafficked service of the 4.</p>\n<p><a href=\"https://media-resolver.api.zesty.io/\">https://media-resolver.api.zesty.io</a></p>\n","_postman_id":"ff083543-d708-cb05-90eb-e0a0f5fefa47","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","id":"9d13ae45-a1f3-bca7-ab4b-a982637b014c","name":"Media API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"3d2e9944-3c5e-4a1f-9a54-278335f31cbf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c61a4903-e58b-4f14-b9e3-302d2704d1bf","type":"text/javascript","exec":[""]}}]}