# Update a token

Update a token's properties, such as its name or permissions, to reflect changes in your security policies or operational requirements. Use this endpoint to renew a token before it expires. To obtain a valid id, first call GET /v1/REST/tokens to list your tokens.

Endpoint: PUT /v1/REST/tokens/{id}
Version: 1.0.0
Security: basicAuth, bearerAuth

## Path parameters:

  - `id` (integer, required)
    The ID of the token.
    Example: 103

## Request fields (application/json):

  - `Name` (string, required)
    Required. Name of the existing token.

  - `Permissions` (array)
    List of permissions assigned to the token.

  - `ExpiresAt` (string)
    Date at which the token expires (RFC3339).

## Response 200 fields (application/json):

  - `Count` (integer)
    Number of items in this response

  - `Data` (array)

  - `Data.ID` (integer)
    The ID of the token.

  - `Data.Name` (string)
    A unique identifier for the token.

  - `Data.Permissions` (array)
    List of permissions assigned to the token.

  - `Data.AccessToken` (string,null)
    The token value to use for authentication. Only displayed once at creation time.

  - `Data.ExpiresAt` (string)
    Date at which the token expires (RFC3339).

  - `Data.CreatedAt` (string)
    Date on which the token was created (RFC3339).

  - `Data.UpdatedAt` (string)
    Date on which the token was last updated (RFC3339).

  - `Total` (integer)
    Total number of items available


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields

## Response 429 fields

## Response 500 fields
