{ "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/5d5ec9d3d4322a04dfbf636c", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"ab71eceeee6a5826da3ae16c39af6ea8\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "122afcc2-6e56-41fb-ad45-83e4eec6ab08", "X-Runtime": "0.104892", "Expires": "0", "Content-Length": "483" }, "request_method": "POST", "request_path": "/api/admin/categories", "request_body": "{\"active\":true,\"client_id\":null,\"created_at\":\"2019-08-22T16:58:59.329Z\",\"default_sort\":\"top_sellers\",\"name\":\"Test Category\",\"product_ids\":[],\"product_rules\":[{\"_id\":\"5d5ec9d3d4322a04dfbf6368\",\"created_at\":null,\"name\":\"search\",\"operator\":\"equals\",\"updated_at\":null,\"value\":\"*\"}],\"range_facets\":{},\"show_navigation\":true,\"subscribed_user_ids\":[],\"tags\":[],\"terms_facets\":[],\"updated_at\":\"2019-08-22T16:58:59.329Z\"}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"category\": {\n \"_id\": \"5d5ec9d3d4322a04dfbf636c\",\n \"active\": true,\n \"client_id\": null,\n \"created_at\": \"2019-08-22T16:58:59.329Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5d5ec9d3d4322a04dfbf6368\",\n \"created_at\": null,\n \"name\": \"search\",\n \"operator\": \"equals\",\n \"updated_at\": null,\n \"value\": \"*\"\n }\n ],\n \"range_facets\": {\n },\n \"show_navigation\": true,\n \"slug\": \"test-category-1\",\n \"subscribed_user_ids\": [\n\n ],\n \"tags\": [\n\n ],\n \"terms_facets\": [\n\n ],\n \"updated_at\": \"2019-08-22T16:58:59.329Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/categories\" -d '{\"active\":true,\"client_id\":null,\"created_at\":\"2019-08-22T16:58:59.329Z\",\"default_sort\":\"top_sellers\",\"name\":\"Test Category\",\"product_ids\":[],\"product_rules\":[{\"_id\":\"5d5ec9d3d4322a04dfbf6368\",\"created_at\":null,\"name\":\"search\",\"operator\":\"equals\",\"updated_at\":null,\"value\":\"*\"}],\"range_facets\":{},\"show_navigation\":true,\"subscribed_user_ids\":[],\"tags\":[],\"terms_facets\":[],\"updated_at\":\"2019-08-22T16:58:59.329Z\"}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Categories", "description": "Creating a category", "route": "/api/admin/categories", "http_method": "POST" }