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

# Bulk add attachments to bundles

> Add attachments to multiple bundles in a single request.
Validation (duplicate bundleId, bundle existence, project authorization, read-only state)
is performed up front and any failure rejects the entire request before any write.
The database insert of the resulting attachments is a single batched write, so the
attachment rows are atomic. Rules-gateway propagation runs after the insert and is
best-effort: if it fails the attachments remain persisted and the caller should retry —
deduplication makes retries safe (already-attached items are skipped). This matches the
behavior of the single-attach endpoint.



## OpenAPI

````yaml /api-specs/cloud/governance-api.json post /rpc/bulk-add-attachments
openapi: 3.0.3
info:
  description: Service responsible for managing Domino Governance feature
  title: Domino Governance API
  contact:
    name: Domino Data Lab
    url: https://tickets.dominodatalab.com/hc/en-us
    email: support@dominodatalab.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://mycluster.domino.tech/api/governance/v1
    description: >-
      Replace 'mycluster.domino.tech' with your Domino cluster hostname. For
      Domino Cloud customers, that is `your-subdomain`.domino.tech (e.g.,
      acme.domino.tech). For self-hosted deployments, it is the hostname you
      reach the Domino UI at.
security: []
paths:
  /rpc/bulk-add-attachments:
    post:
      tags:
        - attachments
      summary: Bulk add attachments to bundles
      description: >-
        Add attachments to multiple bundles in a single request.

        Validation (duplicate bundleId, bundle existence, project authorization,
        read-only state)

        is performed up front and any failure rejects the entire request before
        any write.

        The database insert of the resulting attachments is a single batched
        write, so the

        attachment rows are atomic. Rules-gateway propagation runs after the
        insert and is

        best-effort: if it fails the attachments remain persisted and the caller
        should retry —

        deduplication makes retries safe (already-attached items are skipped).
        This matches the

        behavior of the single-attach endpoint.
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/server.BulkAddAttachmentsBundleRequest'
        description: Bulk add attachments request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.BulkAddAttachmentsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
components:
  schemas:
    server.BulkAddAttachmentsBundleRequest:
      type: object
      required:
        - attachments
        - bundleId
      properties:
        attachments:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/guardrails.CreateAttachment'
        bundleId:
          type: string
    server.BulkAddAttachmentsResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/server.BulkAddAttachmentResult'
    server.HTTPError:
      type: object
      properties:
        code:
          description: >-
            Code is a stable machine-readable error identifier; absent on most
            errors.
          allOf:
            - $ref: '#/components/schemas/guardrails.ErrorCode'
        message:
          type: string
    guardrails.CreateAttachment:
      type: object
      required:
        - identifier
        - type
      properties:
        identifier:
          type: object
        source:
          $ref: '#/components/schemas/guardrails.AttachmentSource'
        type:
          $ref: '#/components/schemas/guardrails.AttachmentType'
    server.BulkAddAttachmentResult:
      type: object
      properties:
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/guardrails.Attachment'
        bundleId:
          type: string
    guardrails.ErrorCode:
      type: string
      enum:
        - BUNDLE_REQUIRES_POLICY
      x-enum-varnames:
        - CodeBundleRequiresPolicy
    guardrails.AttachmentSource:
      type: string
      enum:
        - AUTO
        - MANUAL
      x-enum-varnames:
        - AttachmentSourceAuto
        - AttachmentSourceManual
    guardrails.AttachmentType:
      type: string
      enum:
        - ModelVersion
        - Report
        - DatasetSnapshotFile
        - Endpoint
        - NetAppVolumeSnapshotFile
        - FlowArtifact
        - FlowArtifactFile
      x-enum-varnames:
        - ModelVersion
        - Report
        - DatasetSnapshotFile
        - Endpoint
        - NetAppVolumeSnapshotFile
        - FlowArtifact
        - FlowArtifactFile
    guardrails.Attachment:
      type: object
      properties:
        approvalTimelineMap:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/guardrails.ApprovalTimelineInfo'
        createdAt:
          type: string
        createdBy:
          type: object
        id:
          type: string
        identifier:
          type: object
        source:
          $ref: '#/components/schemas/guardrails.AttachmentSource'
        type:
          $ref: '#/components/schemas/guardrails.AttachmentType'
    guardrails.ApprovalTimelineInfo:
      type: object
      properties:
        approvalStatus:
          $ref: '#/components/schemas/guardrails.ApprovalStatus'
        timelineStatus:
          $ref: '#/components/schemas/guardrails.ApprovalTimelineStatus'
        updatedAt:
          type: string
    guardrails.ApprovalStatus:
      type: string
      enum:
        - PendingSubmission
        - PendingReview
        - Approved
        - ConditionallyApproved
        - PendingExpiration
        - Expired
      x-enum-varnames:
        - PendingSubmission
        - PendingReview
        - Approved
        - ConditionallyApproved
        - PendingExpiration
        - Expired
    guardrails.ApprovalTimelineStatus:
      type: string
      enum:
        - Valid
        - Invalid
      x-enum-varnames:
        - Valid
        - Invalid

````

## Related topics

- [Attachments](/cloud/platform-capabilities/features/governance/work-with-bundles/attachments.md)
- [Work with bundles](/cloud/platform-capabilities/features/governance/work-with-bundles/index.md)
- [Bulk update bundles](/api-reference/bundles/bulk-update-bundles.md)
- [Delete attachment](/api-reference/attachments/delete-attachment.md)
