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

# Add and/or remove tags on a specific channel

> Partially update the tags on a single channel, identified by channelId and merchantId, by supplying addTags and/or removeTags. At least one of the two must be provided, and a tag cannot appear in both lists. A maximum of 5 tags can be added in a single call. Organisation-wide tags are prefixed with 'org://'. Returns the channel's full tag set after the change.



## OpenAPI

````yaml /api-reference/openapi.json patch /tags/channel
openapi: 3.0.1
info:
  title: MerchantSpring Public API
  version: 1.0.0
servers:
  - url: https://mm-api.merchantspring.io
    description: Production
  - url: https://mm-api-staging.merchantspring.io
    description: Staging
security: []
tags:
  - name: channel
    x-group: Channel
  - name: content-change
    x-group: Content Change
  - name: custom-group
    x-group: Custom Group
  - name: order
    x-group: Order
  - name: report
    x-group: Report
  - name: tag
    x-group: Tag
  - name: profitability
    x-group: Profitability
paths:
  /tags/channel:
    patch:
      tags:
        - tag
      summary: Add and/or remove tags on a specific channel
      description: >-
        Partially update the tags on a single channel, identified by channelId
        and merchantId, by supplying addTags and/or removeTags. At least one of
        the two must be provided, and a tag cannot appear in both lists. A
        maximum of 5 tags can be added in a single call. Organisation-wide tags
        are prefixed with 'org://'. Returns the channel's full tag set after the
        change.
      operationId: updateChannelTags
      requestBody:
        description: >-
          Channel identifiers and the tags to add and/or remove (at least one of
          addTags / removeTags)
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateChannelTagsRequest'
            example:
              channelId: A1234567890ABC
              merchantId: XXXUS @ ATVPDKIKX0DER
              addTags:
                - north-america
              removeTags:
                - org://ebay
        required: true
      responses:
        '200':
          description: Successful operation
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicChannelTags'
              example:
                channelId: A1234567890ABC
                merchantId: XXXUS @ ATVPDKIKX0DER
                tags:
                  - amazon
                  - north-america
        '400':
          description: Invalid input
          content: {}
      security:
        - api_key: []
components:
  schemas:
    UpdateChannelTagsRequest:
      type: object
      required:
        - channelId
        - merchantId
      properties:
        channelId:
          type: string
          description: Channel (store) ID
        merchantId:
          type: string
          description: Merchant ID of the channel
        addTags:
          type: array
          description: >-
            Tags to add to the channel. Non-empty strings only.
            Organisation-wide tags are prefixed with 'org://'.
          items:
            type: string
        removeTags:
          type: array
          description: >-
            Tags to remove from the channel. Non-empty strings only. Tags not
            present on the channel are ignored.
          items:
            type: string
      example:
        channelId: A1234567890ABC
        merchantId: XXXUS @ ATVPDKIKX0DER
        addTags:
          - north-america
        removeTags:
          - org://ebay
    PublicChannelTags:
      type: object
      properties:
        channelId:
          type: string
          nullable: true
          description: Channel (store) ID, resolved from the merchant ID where available
        merchantId:
          type: string
          nullable: true
          description: Merchant ID of the channel
        tags:
          type: array
          description: >-
            Tags for the channel. Organisation-wide tags are prefixed with
            'org://'.
          items:
            type: string
      example:
        channelId: A1234567890ABC
        merchantId: XXXUS @ ATVPDKIKX0DER
        tags:
          - amazon
          - org://ebay
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header

````