> ## 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 every awaiting-cell record in a project for attachment

> Queue an attach for each of a project's ``awaiting_cell`` records.

The catch-up path for files that arrived before their cell was registered.
Returns as soon as the records are queued; each attach runs on the worker
and writes its outcome to the record, so read the results from the
raw-data list. Safe to run repeatedly: a record already attached is
skipped. An organization with no attach rule gets zero counts.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /raw_data/attach
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /raw_data/attach:
    post:
      tags:
        - Raw Data
      summary: Queue every awaiting-cell record in a project for attachment
      description: >-
        Queue an attach for each of a project's ``awaiting_cell`` records.


        The catch-up path for files that arrived before their cell was
        registered.

        Returns as soon as the records are queued; each attach runs on the
        worker

        and writes its outcome to the record, so read the results from the

        raw-data list. Safe to run repeatedly: a record already attached is

        skipped. An organization with no attach rule gets zero counts.
      operationId: attach_project_raw_data_raw_data_attach_post
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            description: Project to attach records in
            title: Project Id
          description: Project to attach records in
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachSweepResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AttachSweepResponse:
      properties:
        attempted:
          type: integer
          title: Attempted
          description: Parked records examined.
        queued:
          type: integer
          title: Queued
          description: Records handed to the worker.
        raw_data_ids:
          items:
            type: string
          type: array
          title: Raw Data Ids
          description: IDs of the records queued.
      type: object
      required:
        - attempted
        - queued
      title: AttachSweepResponse
      description: |-
        Result of queueing a project's awaiting-cell records for attachment.

        Outcomes are not in here: each attach runs on the worker and writes its
        result to the record, which the batch view polls.
    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

````