{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json", "Authorization": "Token token=\"qmXCULteWZ4Z6mgbaT3NiHnn\"" }, "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": "e5c5ca29-6a7d-442c-b80d-899d1c907697", "X-Runtime": "0.009277", "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=\\\"qmXCULteWZ4Z6mgbaT3NiHnn\\\"\"" } ], "resource": "Recent views", "description": "Updating recent views with authentication", "route": "/api/storefront/recent_views", "http_method": "PATCH", "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" }