Edit API token
PUT
https://api.datawrapper.de/v3/auth/tokens/{id} Edit an API access token. Check /v3/auth/tokens to get the IDs of your available tokens. Requires scope auth:write.
Example Request
curl --request PUT \
--url https://api.datawrapper.de/v3/auth/tokens/12345 \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"comment": "Token for fun project"
}'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Yes | The format of the request body. |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | ID of the token to be edited. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
comment | string | Yes | The comment can be everything. Tip: Use something to remember where this specific token is used. |
scopes | string[] | No |