---
title: "Update a token."
method: PUT
path: "/v1/tokens/{id}"
tags: ["tokensLibraryManagement"]
---

# Update a token.

`PUT /v1/tokens/{id}`

Update a token with the given identifier in the token library.

## Path parameters

- `id` string, required

## Request body

- TokenBaseDefinitionUpdate
  - `name` string, required — Name of the token.
  - `description` string — Description of the token.
  - `status` string, required — Status of the token. Can be `Active`, or `Inactive`.
  - `type` string, required — Type of the token. Valid values: 1) CollectorRegistration
  - `version` integer, required — Version of the token.

## Response `200`

The token was successfully modified.

- TokenBaseResponse
  - `id` string, required — Identifier of the token.
  - `name` string, required — Name of the token.
  - `description` string, required — Description of the token.
  - `status` string, required — Status of the token. Can be `Active`, or `Inactive`.
  - `type` string, required — Type of the token. Valid values: 1) CollectorRegistrationTokenResponse
  - `version` integer, required — Version of the token.
  - `createdAt` string, date-time, required — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
  - `createdBy` string, required — Identifier of the user who created the resource.
  - `modifiedAt` string, date-time, required — Last modification timestamp in UTC.
  - `modifiedBy` string, required — Identifier of the user who last modified the resource.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
