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

# Unlink tags from queries

> Removes the association between every supplied tag and every supplied query.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/tags/unlink/many
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/tags/unlink/many:
    post:
      tags:
        - Tags
      summary: Unlink tags from queries
      description: >-
        Removes the association between every supplied tag and every supplied
        query.
      operationId: TagsController_unlinkManyFromQueries
      parameters:
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnlinkManyTagsDto'
      responses:
        '204':
          description: ''
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    UnlinkManyTagsDto:
      type: object
      properties:
        tagIds:
          description: IDs of the tags to unlink
          example:
            - 1
            - 2
            - 3
          type: array
          items:
            type: number
        queryIds:
          description: IDs of the queries to unlink the tags from
          example:
            - 01234567-89ab-cdef-0123-456789abcdef
            - 12345678-9abc-def0-1234-56789abcdef0
          type: array
          items:
            type: string
      required:
        - tagIds
        - queryIds
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode

````