---
title: "Edit API token"
method: PUT
path: "/auth/tokens/{id}"
---

# Edit API token

`PUT /auth/tokens/{id}`

Edit an API access token. Check [/v3/auth/tokens](https://developer.datawrapper.de/reference/authtokens) to get the IDs of your available tokens.  Requires scope `auth:write`.

## Path parameters

- `id` integer, required

## Request body

- object
  - `comment` string, required — The comment can be everything. Tip: Use something to remember where this specific token is used.
  - `scopes` string[]

## Response `204`

No Content

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
