---
title: "Update personal access token details"
method: PATCH
path: "/v3/users/{userId}/access-tokens/{tokenId}"
tags: ["Personal Access Tokens"]
---

# Update personal access token details

`PATCH /v3/users/{userId}/access-tokens/{tokenId}`

Update personal access token details.

## Request body

- object
  - `name` string

## Response `200`

Response containing details of a personal access token.

- PersonalAccessToken — Properties of a personal access token.
  - `id` string, uuid, required — Contains a unique identifier used for this resource.
  - `user_id` string, uuid, required — Contains a unique identifier used for a user.
  - `name` string, required
  - `state` 'ACTIVE' | 'REVOKED' | 'EXPIRED', required — State of the personal access token.
  - `revoked_by` string, uuid, nullable — Contains a unique identifier used for the user that revoked this token.
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.
  - `last_used_at` string, date-time, nullable — An ISO-8601 timestamp representation of entity last used date.
  - `expires_at` string, date-time, nullable, required — An ISO-8601 timestamp representation of entity expiration date.
  - `revoked_at` string, date-time, nullable — An ISO-8601 timestamp representation of entity revoked at date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/0261aef4b1e2/schema)
