> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enad.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set variant group channel status

> Sets a variant group's publishing status on a channel. Requires an existing channel membership row for the variant group. Allowed status values are `active`, `inactive`, and `incomplete`.



## OpenAPI

````yaml /swagger/management-api.json patch /api/v1/{team_slug}/{app_slug}/channels/{channel_id}/variant-groups/{variant_group_id}/status
openapi: 3.0.0
info:
  contact:
    email: support@enad.io
    name: API support
    url: http://enad.io/support
  description: This is the documentation for Public API v1
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://enad.io/terms/
  title: Public API
  version: '1.0'
servers:
  - url: //api.enad.io
security: []
paths:
  /api/v1/{team_slug}/{app_slug}/channels/{channel_id}/variant-groups/{variant_group_id}/status:
    patch:
      tags:
        - Variant Groups
      summary: Set variant group channel status
      description: >-
        Sets a variant group's publishing status on a channel. Requires an
        existing channel membership row for the variant group. Allowed status
        values are `active`, `inactive`, and `incomplete`.
      parameters:
        - description: Team slug
          in: path
          name: team_slug
          required: true
          schema:
            type: string
        - description: App slug
          in: path
          name: app_slug
          required: true
          schema:
            type: string
        - description: Channel ID
          in: path
          name: channel_id
          required: true
          schema:
            type: string
        - description: Variant group ID
          in: path
          name: variant_group_id
          required: true
          schema:
            type: string
      requestBody:
        $ref: >-
          #/components/requestBodies/internal_pkg_webserver_v1.SetChannelStatusPayload
      responses:
        '200':
          description: Updated variant group channel status
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_pkg_webserver_v1.OkResponse-github_com_enadhq_nabbit_internal_pkg_webserver_models_ChannelVariantGroupStatus
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '404':
          description: Channel or variant group not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '422':
          description: Status validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
      security:
        - BearerAuth: []
components:
  requestBodies:
    internal_pkg_webserver_v1.SetChannelStatusPayload:
      content:
        application/json:
          schema:
            $ref: >-
              #/components/schemas/internal_pkg_webserver_v1.SetChannelStatusPayload
      description: Channel status payload
      required: true
  schemas:
    internal_pkg_webserver_v1.OkResponse-github_com_enadhq_nabbit_internal_pkg_webserver_models_ChannelVariantGroupStatus:
      properties:
        data:
          $ref: >-
            #/components/schemas/github_com_enadhq_nabbit_internal_pkg_webserver_models.ChannelVariantGroupStatus
        details:
          description: >-
            Additional contextual information about the response. Used to
            provide supplementary details beyond the main data payload, such as
            validation warnings or processing notes
          items:
            type: string
          type: array
        success:
          type: boolean
      type: object
    internal_pkg_webserver_v1.ErrorMessage:
      properties:
        details:
          items:
            type: string
          type: array
        message:
          type: string
        success:
          type: boolean
      type: object
    internal_pkg_webserver_v1.SetChannelStatusPayload:
      properties:
        status:
          enum:
            - active
            - inactive
            - incomplete
          type: string
      required:
        - status
      type: object
    github_com_enadhq_nabbit_internal_pkg_webserver_models.ChannelVariantGroupStatus:
      properties:
        channel_id:
          type: string
        status:
          type: string
        variant_group_id:
          type: string
      type: object

````