---
title: "Updates the details of a single API token"
method: PUT
path: "/v1/accounts/{accountSid}/apiTokens/{apiTokenSid}"
tags: ["API Tokens"]
---

# Updates the details of a single API token

`PUT /v1/accounts/{accountSid}/apiTokens/{apiTokenSid}`

## Path parameters

- `accountSid` string, required — accountSid
- `apiTokenSid` string, required — apiTokenSid

## Request body

- Model37
  - `name` string, required — The name of the API token
  - `role` 'ingest' | 'administrator' | 'user', required — The role applied to the API token

## Response `200`

Successful

- APIToken
  - `sid` string, required — The actual API token
  - `accountSid` string, required — accountSid
  - `environmentSid` string, nullable, required — environmentSid
  - `name` string, required — Name of the API token
  - `role` 'ingest' | 'administrator' | 'user', required — Role assigned to the API token
  - `token` string — The API token
  - `createdAt` string, required
  - `updatedAt` string, nullable, required
  - `lastUsedAt` string, nullable

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation.md) · [All operations](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apitraffic/apitraffic-api-documentation/revisions/b2a22a9b5c98/schema)
