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

# Update Decision Engine Channel

> Update a channel. Fields that are not in the request stay as they are.
Each tag key and value must be in the channel tag configuration.



## OpenAPI

````yaml https://api.hightouch.io/api/swagger.json patch /decision-engine/channels/{channelId}
openapi: 3.0.0
info:
  title: Hightouch API
  version: 1.0.0
  description: Hightouch Public Rest API to access syncs, models, sources and destinations
  contact:
    name: Hightouch
    url: https://hightouch.com
servers:
  - url: https://api.hightouch.com/api/v1
security: []
paths:
  /decision-engine/channels/{channelId}:
    patch:
      tags:
        - AI Decisioning
      summary: Update Decision Engine Channel
      description: |-
        Update a channel. Fields that are not in the request stay as they are.
        Each tag key and value must be in the channel tag configuration.
      operationId: UpdateChannel
      parameters:
        - description: The UUID of the channel
          in: path
          name: channelId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionEngineChannelUpdate'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DecisionEngineChannel'
                  - $ref: '#/components/schemas/DecisionEngineErrorResponse'
                  - $ref: '#/components/schemas/ValidateErrorJSON'
                  - $ref: '#/components/schemas/InternalServerError'
                nullable: true
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
        '422':
          description: Validation Failed
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DecisionEngineErrorResponse'
                  - $ref: '#/components/schemas/ValidateErrorJSON'
      security:
        - bearerAuth: []
components:
  schemas:
    DecisionEngineChannelUpdate:
      description: |-
        Request body for updating a Decision Engine channel. Fields that are not
        in the request stay as they are. The type cannot change. A parent model
        cannot change after it is set.
      properties:
        label:
          type: string
          nullable: true
        parentModelId:
          type: number
          format: double
        destinationId:
          type: number
          format: double
          nullable: true
        externalId:
          type: string
        enabled:
          type: boolean
        guardrails:
          $ref: '#/components/schemas/DecisionEngineChannelGuardrails'
          description: >-
            Each field in guardrails that is in the request replaces the current
            value.
        tags:
          properties: {}
          additionalProperties:
            type: string
          type: object
          nullable: true
          description: >-
            Replaces all channel tags. Use null to remove all of them.

            A channel that is not raw has the tag channel = <its type>
            automatically,

            so its `channel` tag cannot be a channel type. A raw channel can use
            any value.
        destinationConfig:
          $ref: '#/components/schemas/DecisionEngineChannelDestinationConfig'
          description: >-
            Each key in the request replaces the current value. Other keys stay
            as they are.
        sendEventId:
          type: string
          nullable: true
      type: object
      additionalProperties: false
    DecisionEngineChannel:
      description: A Decision Engine channel
      properties:
        id:
          type: string
        label:
          type: string
          nullable: true
        type:
          type: string
        parentModelId:
          type: number
          format: double
          nullable: true
        destinationId:
          type: number
          format: double
          nullable: true
        enabled:
          type: boolean
        externalId:
          type: string
          nullable: true
          description: The parent model column that identifies the user in the destination
        guardrails:
          $ref: '#/components/schemas/DecisionEngineChannelGuardrails'
        tags:
          properties: {}
          additionalProperties:
            type: string
          type: object
          description: >-
            Channel tags, by key. Each key and value is in the channel tag
            configuration.
        destinationConfig:
          $ref: '#/components/schemas/DecisionEngineChannelDestinationConfig'
        sendEventId:
          type: string
          nullable: true
          description: The send event that tracks sends on this channel
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - label
        - type
        - parentModelId
        - destinationId
        - enabled
        - externalId
        - guardrails
        - tags
        - destinationConfig
        - sendEventId
        - createdAt
        - updatedAt
      type: object
      additionalProperties: false
    DecisionEngineErrorResponse:
      properties:
        message:
          type: string
          description: Why the request failed.
      required:
        - message
      type: object
      additionalProperties: false
    ValidateErrorJSON:
      properties:
        message:
          type: string
          enum:
            - Validation failed
          nullable: false
        details:
          properties: {}
          additionalProperties: {}
          type: object
      required:
        - message
        - details
      type: object
      additionalProperties: false
    InternalServerError:
      type: string
      enum:
        - Internal Server Error
      nullable: false
    DecisionEngineChannelGuardrails:
      description: Rules that limit who the channel can send to and when
      properties:
        userAudienceFilter:
          properties: {}
          additionalProperties: {}
          type: object
          nullable: true
          description: >-
            Visual query condition that a user must match to get messages on
            this

            channel. Same format as `userAudienceFilter` on a variant. Use null
            to

            remove it.
        quietPeriod:
          allOf:
            - $ref: '#/components/schemas/DecisionEngineChannelQuietPeriod'
          nullable: true
          description: Use null to remove it.
      type: object
      additionalProperties: false
    DecisionEngineChannelDestinationConfig:
      description: >-
        Destination settings for the channel. Each destination uses only some of
        them.
      properties:
        type:
          type: string
          description: |-
            The destination object the channel sends through, such as "canvas",
            "campaign", "trigger" or "dataExtensions"
        recipientType:
          type: string
        userColumns:
          items:
            $ref: '#/components/schemas/DecisionEngineChannelUserColumn'
          type: array
        channelDataType:
          type: string
          enum:
            - emailAddress
            - mobilePhoneNumber
        channelDataColumn:
          type: string
        customResourceName:
          type: string
        sendFrom:
          type: string
        businessUnit:
          type: string
        sendClassificationId:
          type: string
        syncMode:
          type: string
        collectionName:
          type: string
        mongoIdField:
          type: string
      type: object
      additionalProperties: false
    DecisionEngineChannelQuietPeriod:
      description: Days and times when the channel must not send
      properties:
        enabled:
          type: boolean
        days:
          items:
            $ref: '#/components/schemas/DecisionEngineDay'
          type: array
        times:
          items:
            $ref: '#/components/schemas/DecisionEngineTimeOfDay'
          type: array
      required:
        - enabled
      type: object
      additionalProperties: false
    DecisionEngineChannelUserColumn:
      properties:
        column:
          type: string
        type:
          type: string
        overridePropertyName:
          type: string
      required:
        - column
        - type
      type: object
      additionalProperties: false
    DecisionEngineDay:
      type: string
      enum:
        - sunday
        - monday
        - tuesday
        - wednesday
        - thursday
        - friday
        - saturday
    DecisionEngineTimeOfDay:
      type: string
      enum:
        - midnight
        - late_night
        - early_morning
        - morning
        - afternoon
        - mid_afternoon
        - evening
        - night
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bearer

````