{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json" }, "request_query_parameters": { }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "Location": "/api/admin/products/243319CB2D/images", "Content-Type": "application/json; charset=utf-8", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:45:39 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "35f6b61c-fd17-495b-bed2-017631eaa88d", "X-Runtime": "0.248356", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "406" }, "request_method": "POST", "request_path": "/api/admin/products/243319CB2D/images", "request_body": "{\"image\":{\"image_url\":\"data:image/jpeg;base64,GEGseg42g3g...\"}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"image\": {\n \"_id\": \"5dddc73312415942540764e7\",\n \"created_at\": \"2019-11-27T00:45:39.359Z\",\n \"image_aspect_ratio\": null,\n \"image_format\": null,\n \"image_height\": null,\n \"image_image\": false,\n \"image_inverse_aspect_ratio\": null,\n \"image_landscape\": null,\n \"image_name\": \"file.jpeg\",\n \"image_portrait\": null,\n \"image_uid\": \"2019/11/26/1ynb8b7e2y_file.jpeg\",\n \"image_width\": null,\n \"option\": null,\n \"position\": 0,\n \"updated_at\": \"2019-11-27T00:45:39.359Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/products/243319CB2D/images\" -d '{\"image\":{\"image_url\":\"data:image/jpeg;base64,GEGseg42g3g...\"}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Product Images", "description": "Creating a product image from Base64", "route": "/api/admin/products/:product_id/images", "http_method": "POST" }