---
title: "Updates the settings of an existing Discord channel."
method: POST
path: "/updateChannel"
---

# Updates the settings of an existing Discord channel.

`POST /updateChannel`

This function modifies the properties of an existing Discord channel. It allows updating various channel attributes such as name, NSFW status, and other properties defined in the DiscordChannelSchema. The function takes the channel ID and a partial object containing the properties to be updated.

## Request body

- object
  - `body` object — Body of the updateChannel sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Successful response

- object — The updated channel object
  - `id` string — The ID of the updated channel
  - `name` string — The name of the updated channel
  - `nsfw` boolean — Whether the channel is marked as NSFW

## Other responses

- `400` — Bad Request - Invalid parameters
- `404` — Not Found - Channel does not exist
- `500` — Internal Server Error

---

[API](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/versions/7cb5b64ae924/schema)
