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

# Zbiorcze tagowanie monitorów

> Dodaje lub usuwa tagi na wielu monitorach na raz. `add` i `remove` to listy tagów; tagi są przycinane, deduplikowane i ograniczone do 10 na monitor. Operacja dotyczy wyłącznie monitorów należących do użytkownika. Zwraca liczbę zmienionych pozycji.



## OpenAPI

````yaml /openapi.json post /v1/monitors/bulk-tag
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, RDF, biała lista VAT)

    w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API przekazywany w nagłówku
    `x-api-key`.

    Limity zapytań oraz pule (RDF, PDF, WPV, raporty) wynikają z wybranego
    abonamentu —

    szczegóły zwraca endpoint `GET /v1/usage/summary`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/monitors/bulk-tag:
    post:
      tags:
        - Monitors
      summary: Zbiorcze tagowanie monitorów
      description: >-
        Dodaje lub usuwa tagi na wielu monitorach na raz. `add` i `remove` to
        listy tagów; tagi są przycinane, deduplikowane i ograniczone do 10 na
        monitor. Operacja dotyczy wyłącznie monitorów należących do użytkownika.
        Zwraca liczbę zmienionych pozycji.
      operationId: monitors-bulk-tag
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorBulkTag'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorBulkTagResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MonitorBulkTag:
      properties:
        ids:
          items:
            type: string
          type: array
          maxItems: 1000
          minItems: 1
          title: Ids
        add:
          items:
            type: string
          type: array
          title: Add
        remove:
          items:
            type: string
          type: array
          title: Remove
      type: object
      required:
        - ids
      title: MonitorBulkTag
    MonitorBulkTagResult:
      properties:
        updated:
          type: integer
          title: Updated
      type: object
      required:
        - updated
      title: MonitorBulkTagResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````