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

NameValueRequiredDescription
Content-Typeapplication/jsonYesThe format of the request body.

Path Parameters

NameTypeRequiredDescription
idintegerYesID of the token to be edited.

Request Body

FieldTypeRequiredDescription
commentstringYesThe comment can be everything. Tip: Use something to remember where this specific token is used.
scopesstring[]No