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

# Move a selection of execution tags to a group

> Files every execution tag in the selection (either explicit ids, or all execution tags matching a filter except the excluded ids) under the given tag group node, or ungroups them when groupId is null. Never triggers tag re-matching or re-embedding.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/v1/execution-tags/bulk/group
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/v1/execution-tags/bulk/group:
    post:
      tags:
        - Execution Tags
      summary: Move a selection of execution tags to a group
      description: >-
        Files every execution tag in the selection (either explicit ids, or all
        execution tags matching a filter except the excluded ids) under the
        given tag group node, or ungroups them when groupId is null. Never
        triggers tag re-matching or re-embedding.
      operationId: ExecutionTagsV1Controller_bulkMoveToGroup_v1
      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/BulkGroupExecutionTagsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkActionResponse'
        '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:
    BulkGroupExecutionTagsDto:
      type: object
      properties:
        selection:
          description: The response tags to move.
          allOf:
            - $ref: '#/components/schemas/TagJobExecutionSelectionDto'
        groupId:
          type: string
          description: >-
            Target execution-taxonomy tag group to file the tags under, or null
            to ungroup them.
          format: uuid
          nullable: true
          example: 018f3a2b-7c4d-7e91-b3f5-2a6c8d0e1f42
      required:
        - selection
        - groupId
    BulkActionResponse:
      type: object
      properties:
        affected:
          type: number
          description: Number of rows affected by the action.
          example: 42
      required:
        - affected
    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
    TagJobExecutionSelectionDto:
      type: object
      properties:
        mode:
          type: string
          enum:
            - include
            - all
          description: >-
            How the target set is defined. "include" acts on the given ids;
            "all" acts on everything matching the filter except the excluded
            ids.
        ids:
          description: Ids to act on. Required when mode is "include".
          example:
            - 018f3a2b-7c4d-7e91-b3f5-2a6c8d0e1f42
          type: array
          items:
            type: string
        excludedIds:
          description: Ids to subtract from the matched set. Only used when mode is "all".
          example:
            - 018f3a2b-7c4d-7e91-b3f5-2a6c8d0e1f42
          type: array
          items:
            type: string
        filter:
          description: >-
            Filters identifying the matched response tags. Used when mode is
            "all".
          allOf:
            - $ref: '#/components/schemas/ListTagJobExecutionNewDto'
      required:
        - mode
    ListTagJobExecutionNewDto:
      type: object
      properties:
        name:
          type: string
          description: >-
            Case-insensitive partial match filter applied to the tag job
            execution name.
          example: monthly-tagging
        sort:
          description: >-
            Sorting options for the result set. Only the "name" field is
            sortable; defaults to ascending order by name.
          example:
            - field: name
              direction: ASC
          type: array
          items:
            $ref: '#/components/schemas/SortOptions'
    SortOptions:
      type: object
      properties:
        field:
          type: string
          description: Field name to sort by
        direction:
          type: string
          enum:
            - ASC
            - DESC
          description: Sort direction
      required:
        - field
        - direction

````