{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json", "Authorization": "Token token=\"wAmyRLpRBAzCSAbG98ZwuibF\"" }, "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", "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Flash-Messages", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "cbfdcebe-2696-431f-8771-d9ab02d0b00c", "X-Runtime": "0.010654", "Expires": "0", "Content-Length": "0" }, "request_method": "PATCH", "request_path": "/api/storefront/recent_views", "request_body": "{\"product_id\":\"367A8BB9B5\",\"category_id\":\"596e739b021823358aabe9df\",\"search\":\"shirts\"}", "request_content_type": "application/json", "response_status": 200, "response_status_text": "OK", "response_body": null, "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/recent_views\" -d '{\"product_id\":\"367A8BB9B5\",\"category_id\":\"596e739b021823358aabe9df\",\"search\":\"shirts\"}' -X PATCH \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"wAmyRLpRBAzCSAbG98ZwuibF\\\"\"" } ], "resource": "Recent views", "description": "Updating recent views with authentication", "route": "/api/storefront/recent_views", "explanation": " Use this endpoint like this to keep a accurate list of recent\n activity by the authenticated customer. Each of the three resources\n being tracked (products, categories, searches) are optional.\n", "http_method": "PATCH" }