# Update a topic in the program

Updates a topic in the program

Endpoint: PUT /v2/channels/{channel_id}
Version: 2026-05-01
Security: oauth2_as_a_user, oauth2_as_a_server

## Security:

  - `oauth2_as_a_user` (unknown)
    oauth2 scopes: content.write

  - `oauth2_as_a_server` (unknown)
    oauth2 scopes: content.write

## Path parameters:

  - `channel_id` (integer, required)
    ID of the topic. The topic must exist in the program.

## Request body:

  - `application/json` (unknown)
    Attributes of the topic to update.

## Request fields (application/json):

  - `name` (string, required)
    The topic name.
    Example: Company News

  - `description` (string)
    The topic description.
    Example: All the latest from our company.

  - `state` (string)
    The state of the topic. One of: published, hidden, archived. Setting published or hidden on an archived topic restores it.
    Enum: "published", "hidden", "archived"

  - `auto_publish` (boolean)
    Whether the topic is set to auto-publish.
    Example: true

  - `auto_follow` (boolean)
    Whether the topic is set to auto-follow.
    Example: true

  - `auto_follow_mandatory` (boolean)
    Whether the topic is set to mandatory auto-follow.
    Example: true

  - `recommended` (boolean)
    Whether the topic is recommended.
    Example: true

  - `targeted` (boolean)
    Whether the topic is targeted.
    Example: true

  - `user_submittable` (boolean)
    Whether the topic is user-submittable.
    Example: true

  - `groups` (array)
    A list of the audiences this topic is targeted to.
    Example: ["group1","group2"]

  - `contributors` (array)
    Contributor IDs
    Example: [1,2]

## Response 200:

  - `200` (unknown)
    Updated

## Response 200 fields (application/json):

  - `data` (object, required)

  - `data.name` (string, required)
    The topic name.
    Example: Company News

  - `data.description` (string)
    The topic description.
    Example: All the latest from our company.

  - `data.state` (string)
    The state of the topic. One of: published, hidden, archived. Setting published or hidden on an archived topic restores it.
    Enum: "published", "hidden", "archived"

  - `data.auto_publish` (boolean)
    Whether the topic is set to auto-publish.
    Example: true

  - `data.auto_follow` (boolean)
    Whether the topic is set to auto-follow.
    Example: true

  - `data.auto_follow_mandatory` (boolean)
    Whether the topic is set to mandatory auto-follow.
    Example: true

  - `data.recommended` (boolean)
    Whether the topic is recommended.
    Example: true

  - `data.targeted` (boolean)
    Whether the topic is targeted.
    Example: true

  - `data.user_submittable` (boolean)
    Whether the topic is user-submittable.
    Example: true

  - `data.groups` (array)
    A list of the audiences this topic is targeted to.
    Example: ["group1","group2"]

  - `data.contributor_count` (integer)
    How many contributors this topic has.
    Example: 12

  - `data.contributors` (array)
    Contributor IDs
    Example: [1,2]

  - `data.follower_count` (integer)
    How many followers this topic has.
    Example: 1000

  - `data.created_at` (string)
    When this topic was created in ISO8601 format and UTC timezone.
    Example: 2000-01-01T00:00:00Z

  - `data.updated_at` (string)
    When this topic was last updated in ISO8601 format and UTC timezone.
    Example: 2000-01-01T00:00:00Z

  - `data.id` (integer)
    Unique identifier for the topic.
    Example: 789

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

## Response 401:

  - `401` (unknown)
    Unauthenticated

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

