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

# Add or remove tags on many measurements

> Add and/or remove tags across up to 1000 measurements.

Removal is case-insensitive and applied before additions. Measurements whose
tags would not change are left untouched and not counted.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /cell_measurements/tags/bulk
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /cell_measurements/tags/bulk:
    post:
      tags:
        - Cell Measurements
      summary: Add or remove tags on many measurements
      description: >-
        Add and/or remove tags across up to 1000 measurements.


        Removal is case-insensitive and applied before additions. Measurements
        whose

        tags would not change are left untouched and not counted.
      operationId: bulk_update_measurement_tags_cell_measurements_tags_bulk_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUpdateMeasurementTagsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUpdateMeasurementTagsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BulkUpdateMeasurementTagsRequest:
      properties:
        project_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Project Id
          description: >-
            When set, every measurement must belong to this project; one outside
            it rejects the request before anything is written.
        measurement_ids:
          items:
            type: string
            format: uuid
          type: array
          maxItems: 1000
          minItems: 1
          title: Measurement Ids
          description: Measurements to retag (1-1000).
        add:
          items:
            type: string
          type: array
          title: Add
          description: Tags to add. A tag the measurement already has is left as is.
        remove:
          items:
            type: string
          type: array
          title: Remove
          description: Tags to remove, matched case-insensitively. Applied before add.
      type: object
      required:
        - measurement_ids
      title: BulkUpdateMeasurementTagsRequest
      description: Add and/or remove tags across many measurements at once.
    BulkUpdateMeasurementTagsResponse:
      properties:
        updated_count:
          type: integer
          title: Updated Count
          description: Measurements whose tags actually changed.
      type: object
      required:
        - updated_count
      title: BulkUpdateMeasurementTagsResponse
      description: Outcome of a bulk tag update.
    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

````

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