# Update an access token Use this API to update some of the attributes of a specified access token. Specify the name of the token that you want to update in the path (case sensitive). In the request body, specify the new values. You can update the following token attributes: - tokenName—Must be 5 - 25 characters long. - tokenDescription—For IMPERSONATED tokens this field should state the impersonation reason. - expiryStr—Must not be in the past. Format:y M d h *m, where y=years, M=months, d=days, h=hours, m=minutes (case sensitive), and * representing any number. Only the token creator or another privileged user can update an IMPERSONATED token. You cannot edit an expired token or set the token expiry to a time in the past. Endpoint: PUT /uar/v1/token/{tokenName} Version: 2024.09 ## Path parameters: - `tokenName` (string, required) Name of the token to be updated (case sensitive). ## Request fields (application/json): - `expiryStr` (string, required) Lifetime of the token as specified when the token was created. Format: y M d h m, where y=years, M=months, d=days, h=hours, m=minutes (case sensitive), and representing any number. - `tokenDescription` (string) Mandatory for IMPERSONATED tokens; optional for NORMAL tokens. For IMPERSONATED tokens, this field should capture the impersonation reason. - `tokenName` (string, required) The name of the token. ## Response 200 fields (application/json): - `body` (object) - `statusCode` (string) Enum: "100", "101", "102", "103", "200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "307", "308", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "426", "428", "429", "431", "451", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511" - `statusCodeValue` (integer)