---
title: "Update User Channel"
method: PUT
path: "/api/channels/{channel_id}"
tags: ["Channels"]
---

# Update User Channel

`PUT /api/channels/{channel_id}`

Update a channel configuration.

## Path parameters

- `channel_id` integer, required

## Request body

- UserChannelUpdate
  - `channel_name` string, nullable
  - `config` object, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- UserChannelResponse
  - `channel_type` string, required — e.g. telegram, feishu
  - `channel_name` string, nullable — User-friendly name
  - `config` object, required — Channel specific configuration
  - `is_active` boolean
  - `id` integer, required
  - `user_id` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
