{ "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/test-product/variants", "Content-Type": "application/json; charset=utf-8", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:44:35 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "d7b936e8-e806-40e0-8014-f72d74423177", "X-Runtime": "0.148935", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "215" }, "request_method": "POST", "request_path": "/api/admin/products/8CDBF45A5E/variants", "request_body": "{\"variant\":{\"active\":true,\"active_segment_ids\":[],\"created_at\":null,\"details\":{},\"name\":\"SKU\",\"position\":0,\"sku\":\"SKU\",\"updated_at\":null}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"variant\": {\n \"_id\": \"5f3d2cc20218236de151e822\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"created_at\": \"2020-08-19T13:44:34.869Z\",\n \"details\": {\n },\n \"name\": \"SKU\",\n \"position\": 0,\n \"sku\": \"SKU\",\n \"updated_at\": \"2020-08-19T13:44:34.869Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/products/8CDBF45A5E/variants\" -d '{\"variant\":{\"active\":true,\"active_segment_ids\":[],\"created_at\":null,\"details\":{},\"name\":\"SKU\",\"position\":0,\"sku\":\"SKU\",\"updated_at\":null}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Variants", "description": "Creating a product variant", "route": "/api/admin/products/:product_id/variants", "http_method": "POST" }