> ## 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.

# Bulk import product items



## OpenAPI

````yaml /openapi.yaml post /imports/product_items
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:
  /imports/product_items:
    post:
      tags:
        - Import
      summary: Bulk import product items
      operationId: imports/product_items#create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyImportProductItemsCreate'
        required: true
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/import'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '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:
    requestBodyImportProductItemsCreate:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            type: object
            required:
              - identifier
            properties:
              identifier:
                type: string
              category_id:
                type: integer
                nullable: true
              data:
                type: object
    import:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          enum:
            - processing
            - completed
            - completed_with_errors
            - failed
        import_kind:
          type: string
          enum:
            - product_items
            - project_items
        project:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            code:
              type: string
              nullable: true
            name:
              type: string
          required:
            - id
            - code
            - name
        package_id:
          type: integer
          nullable: true
        package_section_id:
          type: integer
          nullable: true
        job_id:
          type: string
          format: uuid
        total_count:
          type: integer
        processed_count:
          type: integer
        success_count:
          type: integer
        error_count:
          type: integer
        row_errors:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              identifier:
                type: string
                nullable: true
              errors:
                type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                      nullable: true
                    code:
                      type: string
                    message:
                      type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        user:
          type: object
          properties:
            id:
              type: integer
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            email:
              type: string
          required:
            - id
            - first_name
            - last_name
            - email
      required:
        - id
        - status
        - import_kind
        - job_id
        - total_count
        - processed_count
        - success_count
        - error_count
        - row_errors
        - created_at
        - updated_at
        - user
    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.