{ "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/5dddc70c1241594254076400", "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:00 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "c5f8ab73-1c0b-4ee3-aa0a-f2d5bc052503", "X-Runtime": "0.131567", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "545" }, "request_method": "POST", "request_path": "/api/admin/categories", "request_body": "{\"active\":true,\"active_segment_ids\":[],\"client_id\":null,\"created_at\":\"2019-11-27T00:45:00.201Z\",\"default_sort\":\"top_sellers\",\"name\":\"Test Category\",\"product_ids\":[],\"product_rules\":[{\"_id\":\"5dddc70c12415942540763fb\",\"active\":true,\"active_segment_ids\":[],\"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-11-27T00:45:00.201Z\"}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"category\": {\n \"_id\": \"5dddc70c1241594254076400\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"client_id\": null,\n \"created_at\": \"2019-11-27T00:45:00.201Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5dddc70c12415942540763fb\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\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-11-27T00:45:00.201Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/categories\" -d '{\"active\":true,\"active_segment_ids\":[],\"client_id\":null,\"created_at\":\"2019-11-27T00:45:00.201Z\",\"default_sort\":\"top_sellers\",\"name\":\"Test Category\",\"product_ids\":[],\"product_rules\":[{\"_id\":\"5dddc70c12415942540763fb\",\"active\":true,\"active_segment_ids\":[],\"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-11-27T00:45:00.201Z\"}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Categories", "description": "Creating a category", "route": "/api/admin/categories", "http_method": "POST" }