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

# Update an execution tag

> Updates an execution tag; rejected if no matching tag exists in the project. For an exact tag, a rename or a mode change recomputes all of its execution links, manual links included. For a semantic tag, new answers use the new definition at once and past answers change on the next history re-sync.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json patch /api/v1/execution-tags/{id}
openapi: 3.0.0
info:
  title: MentionLab Public API v0.6.30-rc
  description: ''
  version: 0.6.30-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v1/execution-tags/{id}:
    patch:
      tags:
        - Execution Tags
      summary: Update an execution tag
      description: >-
        Updates an execution tag; rejected if no matching tag exists in the
        project. For an exact tag, a rename or a mode change recomputes all of
        its execution links, manual links included. For a semantic tag, new
        answers use the new definition at once and past answers change on the
        next history re-sync.
      operationId: ExecutionTagsV1Controller_update_v1
      parameters:
        - name: id
          required: true
          in: path
          description: UUID of the execution tag to update.
          schema:
            type: string
        - 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/UpdateTagJobExecutionNewDto'
      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:
    UpdateTagJobExecutionNewDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the tag. Must not start or end with a quote or apostrophe.
          example: important
        color:
          type: string
          description: Color of the tag in hex format
          example: '#3B82F6'
        matchingMode:
          type: string
          description: >-
            How the tag is matched to responses: `exact` links only responses
            whose text contains the tag name (default), `semantic` links
            responses by meaning, using the name, description and exclusion.
          enum:
            - exact
            - semantic
          example: exact
        description:
          type: string
          description: >-
            Semantic tags: what the tag covers. Changing it marks the tag for a
            history re-sync.
          nullable: true
          maxLength: 300
          example: Checked baggage rules, weight limits and extra bag fees.
        exclusion:
          type: string
          description: >-
            Semantic tags: what the tag does not cover. Changing it marks the
            tag for a history re-sync.
          nullable: true
          maxLength: 200
          example: Cabin bags.
        confirmVectorization:
          type: boolean
          description: >-
            Ignored. Semantic tags no longer index the project responses, so
            there is nothing to confirm.
          deprecated: true
          example: true
        groupId:
          type: string
          description: >-
            ID of the execution-taxonomy tag group to file the tag under, or
            null for ungrouped. Group assignment never triggers tag re-matching
            or re-embedding.
          format: uuid
          nullable: true
          example: 018f3a2b-7c4d-7e91-b3f5-2a6c8d0e1f42
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.