{ "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/redirects/5f3d2d6f0218236de151edc5", "Content-Type": "application/json; charset=utf-8", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:47:27 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "2c079d01-c7a5-4973-8389-6cb4d2f22563", "X-Runtime": "0.021191", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "168" }, "request_method": "POST", "request_path": "/api/admin/redirects", "request_body": "{\"redirect\":{\"created_at\":\"2020-08-19T13:47:27.112Z\",\"destination\":\"/pages/faq\",\"path\":\"/foo\",\"updated_at\":\"2020-08-19T13:47:27.112Z\"}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"redirect\": {\n \"_id\": \"5f3d2d6f0218236de151edc5\",\n \"created_at\": \"2020-08-19T13:47:27.112Z\",\n \"destination\": \"/pages/faq\",\n \"path\": \"/foo\",\n \"updated_at\": \"2020-08-19T13:47:27.112Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/redirects\" -d '{\"redirect\":{\"created_at\":\"2020-08-19T13:47:27.112Z\",\"destination\":\"/pages/faq\",\"path\":\"/foo\",\"updated_at\":\"2020-08-19T13:47:27.112Z\"}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Redirects", "description": "Creating a redirect", "route": "/api/admin/redirects", "http_method": "POST" }