---
title: "Update a CLI token"
method: PATCH
path: "/api/cli-tokens/{id}"
tags: ["Authentication"]
---

# Update a CLI token

`PATCH /api/cli-tokens/{id}`

Enable, disable, or rename a CLI token.

## Request body

- object
  - `enabled` boolean
  - `name` string

## Response `200`

Token updated

- object
  - `success` boolean
  - `token` object
    - `id` string, uuid
    - `name` string
    - `enabled` boolean

## Other responses

- `401` — Authentication required or token invalid
- `404` — Resource not found

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) · [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supercheck-io/supercheck-api/revisions/81782deccf0e/schema)
