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

# Bulk update classification flags on multiple entities

> Updates classification flags on several entities at once; only the flags provided are changed, and the call is rejected when none are supplied.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json patch /api/entities/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/entities/many:
    patch:
      tags:
        - Entities
      summary: Bulk update classification flags on multiple entities
      description: >-
        Updates classification flags on several entities at once; only the flags
        provided are changed, and the call is rejected when none are supplied.
      operationId: EntitiesRefController_bulkUpdate
      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/BulkUpdateEntitiesDto'
      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:
    BulkUpdateEntitiesDto:
      type: object
      properties:
        ids:
          description: Entity IDs to update (must belong to the current project)
          example:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
            - 550e8400-e29b-41d4-a716-446655440000
          type: array
          items:
            type: string
        isOwned:
          type: boolean
          description: Mark entities as owned by the project
          example: true
        isCompetitor:
          type: boolean
          description: Mark entities as competitors
          example: false
        isBlacklisted:
          type: boolean
          description: >-
            Mark entities as blacklisted (excludes from analysis but preserves
            history)
          example: false
      required:
        - ids
    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

````