> ## 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 Tag

> Update the description or the allowed values of a tag key. `values`
replaces the whole list. The request fails with 409 if a message or
channel uses a removed value, unless `cascade` is true, or if a flow tag
limit uses a removed value.



## OpenAPI

````yaml https://api.hightouch.io/api/swagger.json patch /decision-engine/tags/{key}
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/tags/{key}:
    patch:
      tags:
        - AI Decisioning
      summary: Update Decision Engine Tag
      description: |-
        Update the description or the allowed values of a tag key. `values`
        replaces the whole list. The request fails with 409 if a message or
        channel uses a removed value, unless `cascade` is true, or if a flow tag
        limit uses a removed value.
      operationId: UpdateTag
      parameters:
        - description: The tag key
          in: path
          name: key
          required: true
          schema:
            type: string
        - description: The kind of object the tag applies to
          in: query
          name: type
          required: false
          schema:
            $ref: '#/components/schemas/DecisionEngineTagType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionEngineTagUpdate'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DecisionEngineTag'
                  - $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'
        '409':
          description: The tag is in use
          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:
    DecisionEngineTagType:
      type: string
      enum:
        - message
        - channel
      description: |-
        The kind of object a tag applies to. Message tags and channel tags have
        separate configurations.
    DecisionEngineTagUpdate:
      description: Request body for updating a Decision Engine tag
      properties:
        description:
          type: string
          nullable: true
          description: New instructions for the key. Use null to clear them.
        values:
          items:
            $ref: '#/components/schemas/DecisionEngineTagValue'
          type: array
          description: The full list of allowed values. It replaces the current list.
        cascade:
          type: boolean
          description: >-
            Remove values that are no longer allowed from the messages or
            channels

            that use them. Without it, the request fails with 409 when a message
            or

            channel uses a removed value. The config changes first, and the
            removal

            from the messages or channels is a best effort. If some keep a
            removed

            value, send the request again.
      type: object
      additionalProperties: false
    DecisionEngineTag:
      description: A Decision Engine tag key with its allowed values
      properties:
        key:
          type: string
        description:
          type: string
          description: Instructions that tell AI tagging how to choose a value for this key
        values:
          items:
            $ref: '#/components/schemas/DecisionEngineTagValue'
          type: array
      required:
        - key
        - values
      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
    DecisionEngineTagValue:
      description: An allowed value of a Decision Engine tag
      properties:
        value:
          type: string
          description: The value. Must not be empty or contain a colon.
        description:
          type: string
          description: Instructions that tell AI tagging when to use this value
      required:
        - value
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bearer

````