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

# Bulk import plan provisions

> Uploads a provisions workbook and queues a durable import job for the selected rows. Returns a job id immediately; poll the job status endpoint for progress. Re-submitting the same workbook and row selection while a job is still running returns that job rather than starting a second one.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/formats/{year}/_bulk_add
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /packages/retirement/formats/{year}/_bulk_add:
    post:
      tags:
        - packages
      summary: Bulk import plan provisions
      description: >-
        Uploads a provisions workbook and queues a durable import job for the
        selected rows. Returns a job id immediately; poll the job status
        endpoint for progress. Re-submitting the same workbook and row selection
        while a job is still running returns that job rather than starting a
        second one.
      parameters:
        - description: Plan Year
          name: year
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_formats.BulkImportProvisionsRequest
        description: Workbook bytes, row selection, and format (asc/ftw)
        required: true
      responses:
        '200':
          description: Queued job
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Bad request - invalid body, format, rows, or year
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '409':
          description: >-
            This exact import already ran; supply a distinct idempotency_key to
            repeat it
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: >-
            Failed to store the workbook, create the job, or hand it to the
            import service
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_formats.BulkImportProvisionsRequest:
      type: object
      properties:
        create_new:
          type: boolean
        file:
          type: array
          items:
            type: integer
        format:
          type: string
        idempotency_key:
          description: >-
            IdempotencyKey, when set, overrides the key derived from the
            request. A

            caller that can identify its own retries precisely should say so.
          type: string
        rows:
          type: array
          items:
            type: integer
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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