---
title: "👤 Change Personal Access Token's details."
method: PATCH
path: "/token/{id}"
tags: ["security", "default"]
---

# 👤 Change Personal Access Token's details.

`PATCH /token/{id}`

## Request

- Base URL: `{{ server_url }}/v1`
- URL: `{{ server_url }}/v1/token/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/athenian/apis/title/docs/token/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body

- PatchTokenRequest: Request body of `/token/{id}` PATCH. Allows changing the token name.
  - `name` string: New name of the token.

## Response `200`

Empty object indicates a successful patch operation.

- object

## Other responses

- `403`: The user does not own the token.
- `404`: The token does not exist.
- `409`: There is another token with the same name belonging to the user in the account.

---

[API](https://skmtc.dev/athenian/apis/title.md) - [All operations](https://skmtc.dev/athenian/apis/title/llms.txt) - [OpenAPI document](https://skmtc.dev/athenian/apis/title/revisions/110c9f7cffdd?raw)
