{ "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/categories/5d5dbcc8d4322a4b69d78912/product_rules", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"8f40b7c864e6867dd1a2127a53dc11bd\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "ebf7467c-3886-477b-b9f7-afb3c1b2f402", "X-Runtime": "0.046530", "Expires": "0", "Content-Length": "179" }, "request_method": "POST", "request_path": "/api/admin/categories/5d5dbcc8d4322a4b69d78912/product_rules", "request_body": "{\"product_rule\":{\"name\":\"search\",\"operator\":\"equals\",\"value\":\"*\"}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"product_rule\": {\n \"_id\": \"5d5dbcc8d4322a4b69d78915\",\n \"created_at\": \"2019-08-21T21:51:04.641Z\",\n \"name\": \"search\",\n \"operator\": \"equals\",\n \"updated_at\": \"2019-08-21T21:51:04.641Z\",\n \"value\": \"*\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/categories/5d5dbcc8d4322a4b69d78912/product_rules\" -d '{\"product_rule\":{\"name\":\"search\",\"operator\":\"equals\",\"value\":\"*\"}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Category Product Rules", "description": "Creating a category product rule", "route": "/api/admin/categories/:category_id/product_rules", "http_method": "POST" }