---
title: "PUT /v2/channel/{channelId}"
method: PUT
path: "/v2/channel/{channelId}"
---

# PUT /v2/channel/{channelId}

`PUT /v2/channel/{channelId}`

Atualiza as informações do canal, permitindo alterar o nome e vincular (ou trocar) o agente associado ao canal.

## Path parameters

- `channelId` string, required

## Request body

- object
  - `name` string, required — Nome do canal
  - `agentId` string, nullable — ID do agente vinculado ao canal (opcional). Se null/vazio, remove o vínculo com o agente.

## Response `200`

Canal atualizado com sucesso

- object
  - `name` string, nullable — Nome do canal
  - `assistantId` string, nullable — ID do agente vinculado (quando houver)
  - `type` string — Tipo do canal
  - `workspace` object — Workspace do canal
    - `id` string — ID do workspace
    - `name` string — Nome do workspace

## Other responses

- `403` — Erro de token
- `500` — Error

---

[API](https://skmtc.net/gptmaker/apis/openapi-gpt-maker.md) · [All operations](https://skmtc.net/gptmaker/apis/openapi-gpt-maker/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gptmaker/openapi-gpt-maker/revisions/bda09b3eba6e/schema)
