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

# Queue a raw-data record for attachment to its cell

> Hand the record to the worker, which resolves it to a cell and links it.

How it resolves is the organization's provisioning — today a filename
convention, opted into by a super admin; see
``src.services.raw_data_attach``. Returns as soon as the record is queued;
the outcome lands on the record, so read it back from ``GET
/raw_data/{raw_data_id}``. A record that is not awaiting a cell, or an
organization with no attach rule, gets a 400.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /raw_data/{raw_data_id}/attach
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /raw_data/{raw_data_id}/attach:
    post:
      tags:
        - Raw Data
      summary: Queue a raw-data record for attachment to its cell
      description: >-
        Hand the record to the worker, which resolves it to a cell and links it.


        How it resolves is the organization's provisioning — today a filename

        convention, opted into by a super admin; see

        ``src.services.raw_data_attach``. Returns as soon as the record is
        queued;

        the outcome lands on the record, so read it back from ``GET

        /raw_data/{raw_data_id}``. A record that is not awaiting a cell, or an

        organization with no attach rule, gets a 400.
      operationId: attach_raw_data_raw_data__raw_data_id__attach_post
      parameters:
        - name: raw_data_id
          in: path
          required: true
          schema:
            type: string
            title: Raw Data Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachQueuedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AttachQueuedResponse:
      properties:
        raw_data_id:
          type: string
          title: Raw Data Id
          description: Record queued.
        queued:
          type: boolean
          title: Queued
          description: Always true; the call raises otherwise.
          default: true
      type: object
      required:
        - raw_data_id
      title: AttachQueuedResponse
      description: >-
        A record handed to the worker for attachment.


        The outcome is not in here: attach re-reads and re-parses the file,
        which

        is worker time, and it writes its result to the record.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````