{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token token=\"uYrfBXhiicquki9sSkneipdv\"" }, "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-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:55:26 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "0f425caa-9497-44c7-9f04-894a212c521f", "X-Runtime": "0.011995", "X-Workarea-Segments": "", "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\": \"uYrfBXhiicquki9sSkneipdv\",\n \"expires_at\": \"2020-08-26T13:55:26.591Z\"\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=\\\"uYrfBXhiicquki9sSkneipdv\\\"\"" } ], "resource": "Authentication", "description": "Refreshing an authentication token", "route": "/api/storefront/authentication_tokens", "explanation": "
Refreshing an authentication token extends its expiration so that it
\ncan continue to be used.