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

# Batch update categories

> Update multiple categories at once (max 250). Name, group, and description are editable on any category except Mercury's, which is read-only. Unknown or read-only IDs are skipped.



## OpenAPI

````yaml /api/v2/openapi.json post /categories/batch
openapi: 3.0.3
info:
  title: Finta API v2
  version: 2.0.0
  description: >-
    DB-backed Finta API for users with storage mode enabled. Requires an API key
    and active subscription.


    ## Rate limits


    Rate limits are enforced per user (shared across the REST API and MCP) based
    on subscription plan:


    | Plan | Per minute | Per day |

    | --- | --- | --- |

    | Standard | 10 requests | 500 requests |

    | Pro | 30 requests | 2,000 requests |


    When a limit is exceeded, the API returns HTTP 429 with `error.code`
    `RATE_LIMITED` and a human-readable `message`. A `Retry-After` response
    header is included with the number of seconds until the window resets.
servers:
  - url: https://api.finta.io/v2
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Me
    description: Authenticated user
  - name: Health
    description: Service health
  - name: Bank Connections
    description: Bank connection resources
  - name: Accounts
    description: Account and balance history resources
  - name: Investments
    description: Securities, holdings, and investment transaction resources
  - name: Transactions
    description: Transaction resources
  - name: Categories
    description: Transaction category resources
  - name: Rules
    description: Transaction rule resources
paths:
  /categories/batch:
    post:
      tags:
        - Categories
      summary: Batch update categories
      description: >-
        Update multiple categories at once (max 250). Name, group, and
        description are editable on any category except Mercury's, which is
        read-only. Unknown or read-only IDs are skipped.
      operationId: batchUpdateCategoriesV2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CategoryBatchUpdateRequest'
      responses:
        '200':
          description: Number of categories updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchUpdateResponse'
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '403':
          description: Storage mode required or subscription inactive
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimitedResponse'
components:
  schemas:
    CategoryBatchUpdateRequest:
      type: object
      required:
        - updates
      properties:
        updates:
          type: array
          minItems: 1
          maxItems: 250
          items:
            type: object
            required:
              - id
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
                minLength: 1
                maxLength: 100
              group:
                type: string
                minLength: 1
                maxLength: 100
              description:
                type: string
                minLength: 1
                maxLength: 500
                nullable: true
    BatchUpdateResponse:
      type: object
      required:
        - updated
      properties:
        updated:
          type: integer
          description: Number of records updated
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: STORAGE_MODE_REQUIRED
            message:
              type: string
    UnauthorizedResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Missing or invalid Authorization header
  responses:
    RateLimitedResponse:
      description: Rate limit exceeded
      headers:
        Retry-After:
          description: Seconds until the rate-limit window resets
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: RATE_LIMITED
              message: >-
                Per-minute rate limit exceeded (10 requests/min on Standard
                plan).
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Finta API key from the dashboard (Bearer token).

````