---
title: "Update API token"
method: PUT
path: "/tokens/{tokenID}"
tags: ["Tokens"]
---

# Update API token

`PUT /tokens/{tokenID}`

## Path parameters

- `tokenID` string, required

## Request body

- ModelsUpdateAPITokenRequest
  - `name` string
  - `status` string

## Response `200`

token updated successful

- object
  - `data` object
    - `created_at` string, required
    - `deleted_at` string
    - `id` integer
    - `name` string
    - `role_id` integer
    - `status` string, required
    - `token_id` string, required
    - `ttl` integer, required
    - `updated_at` string, required
    - `user_id` integer
  - `status` string

## Other responses

- `400` — invalid update request
- `403` — updating token not permitted
- `404` — token not found
- `500` — internal error on updating token

---

[API](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api.md) · [All operations](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vxcontrol/pentagi-swagger-api/revisions/7c1cbf7abaa1/schema)
