---
title: "Update the subchannel"
method: PUT
path: "/channels/{channel_name}/subchannels/{subchannel_name}"
tags: ["channels"]
---

# Update the subchannel

`PUT /channels/{channel_name}/subchannels/{subchannel_name}`

## Request

- Base URL: `https://api.anaconda.cloud/api`
- URL: `https://api.anaconda.cloud/api/channels/{channel_name}/subchannels/{subchannel_name}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Auth`
- TypeScript: <https://skmtc.dev/anaconda/apis/anaconda-server-api/docs/channels/:channel_name/subchannels/:subchannel_name/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `channel_name` string, required
- `subchannel_name` string, required

## Request body

- Subchannel: Nested channel object
  - `id` string
  - `name` string: This can be any string based name
  - `description` string
  - `parent` string: name of parent channel
  - `privacy` 'private' | 'authenticated' | 'public': channel privacy channel
  - `channel_type` 'default' | 'virtual': channel type
  - `indexing_behavior` 'default' | 'frozen': channel indexing behavior
  - `sources` VirtualChannelSource[]
    - `name` string, required
    - `parent_name` string
  - `created` string: date created
  - `updated` string: date of last update

## Response `200`

successfully updated the subchannel

## Other responses

- `401`: Unauthenticated, no token is provided or token is invalid
- `403`: Access is forbidden
- `404`: The specified resource was not found
- `409`: Creating/updating resource raises a conflict
- `500`: Internal server error

---

[API](https://skmtc.dev/anaconda/apis/anaconda-server-api.md) - [All operations](https://skmtc.dev/anaconda/apis/anaconda-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anaconda/apis/anaconda-server-api/revisions/6aef0cb7a151?raw)
