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

# Batch update category item fields



## OpenAPI

````yaml /openapi.yaml post /categories/batch_update
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /categories/batch_update:
    post:
      tags:
        - Category
      summary: Batch update category item fields
      operationId: categories#batch_update
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyCategoryBatchUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/category'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyCategoryBatchUpdate:
      type: object
      properties:
        categories:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              item_field_ids:
                type: array
                items:
                  type: integer
            required:
              - id
      required:
        - categories
    category:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        code:
          type: string
          nullable: true
        parent_id:
          type: integer
          nullable: true
        position:
          type: integer
        editable:
          type: boolean
          description: >-
            false for system categories (e.g. "Unknown") — name, code and parent
            can't be changed
        deletable:
          type: boolean
          description: >-
            false for system categories (e.g. "Unknown") — the category can't be
            deleted
        workspace_id:
          type: integer
        children_ids:
          type: array
          items:
            type: integer
        item_field_ids:
          type: array
          items:
            type: integer
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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