---
title: "Update a user token"
method: POST
path: "/user/{userId}/token/{tokenId}/update"
tags: ["User"]
---

# Update a user token

`POST /user/{userId}/token/{tokenId}/update`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/user/{userId}/token/{tokenId}/update`
- Auth: HTTP bearer

## Path parameters

- `userId` string, required: The ID of the user
- `tokenId` string, required: The ID of the user token to update

## Request body

- object
  - `name` string: The name of the token
  - `description` string: The description of the token
  - `config` object: Token configuration
  - `meta` object: Custom metadata for the token

## Response `200`

The user token was updated successfully

- object
  - `id` string, required: The ID of the updated user token

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
