{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json", "Authorization": "Token token=\"VC55s1MMqjyXK9zz9xyZ558C\"" }, "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-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:54:15 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "fd993239-b60d-46ee-896f-095bfa4e6ff7", "X-Runtime": "0.002988", "X-Workarea-Segments": "", "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=\\\"VC55s1MMqjyXK9zz9xyZ558C\\\"\"" } ], "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
\nactivity by the authenticated customer. Each of the three resources
\nbeing tracked (products, categories, searches) are optional.