{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token token=\"P18mWxiY3xFv5NBzNQXyUtDy\"" }, "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; charset=utf-8", "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", "ETag": "W/\"3c498ff26a4f29dbd604930395323dfd\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "4efe4660-f394-49ca-9691-3a2aff761751", "X-Runtime": "0.006391", "Expires": "0", "Content-Length": "76" }, "request_method": "PATCH", "request_path": "/api/storefront/authentication_tokens", "request_body": null, "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"token\": \"P18mWxiY3xFv5NBzNQXyUtDy\",\n \"expires_at\": \"2019-08-29T17:06:43.807Z\"\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/authentication_tokens\" -d '' -X PATCH \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Authorization: Token token=\\\"P18mWxiY3xFv5NBzNQXyUtDy\\\"\"" } ], "resource": "Authentication", "description": "Refreshing an authentication token", "route": "/api/storefront/authentication_tokens", "http_method": "PATCH", "explanation": " Refreshing an authentication token extends its expiration so that it\n can continue to be used.\n" }