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

# Bulk update items

> Bulk-update item payloads in a task



## OpenAPI

````yaml /api-reference/openapi.json put /annotation-tasks/{task_uuid}/items
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /annotation-tasks/{task_uuid}/items:
    put:
      tags:
        - annotation-tasks
      summary: Bulk update items
      description: Bulk-update item payloads in a task
      operationId: bulk_update_items_annotation_tasks__task_uuid__items_put
      parameters:
        - name: task_uuid
          in: path
          required: true
          schema:
            type: string
            description: Annotation task to act on
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Task Uuid
          description: Annotation task to act on
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUpdateItemsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUpdateItemsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BulkUpdateItemsRequest:
      properties:
        updates:
          items:
            $ref: '#/components/schemas/ItemUpdatePayload'
          type: array
          title: Updates
          description: >-
            The new payload for each item you're updating. Entries not in this
            task, or referencing deleted items, are skipped
      type: object
      required:
        - updates
      title: BulkUpdateItemsRequest
    BulkUpdateItemsResponse:
      properties:
        updated_count:
          type: integer
          title: Updated Count
          description: How many items were updated
      type: object
      required:
        - updated_count
      title: BulkUpdateItemsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ItemUpdatePayload:
      properties:
        uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Uuid
          description: ID of the item to update
          examples:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
        payload:
          title: Payload
          description: >-
            The item's new payload. `payload['name']` is still required and must
            be unique within the task
      type: object
      required:
        - uuid
        - payload
      title: ItemUpdatePayload
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````