---
title: "Copy attachment to quote from library"
method: POST
path: "/v2/quotes/{quoteId}/attachments/shared"
tags: ["Quote attachments"]
---

# Copy attachment to quote from library

`POST /v2/quotes/{quoteId}/attachments/shared`

## Request

- Base URL: `https://api.pax8.com`
- URL: `https://api.pax8.com/v2/quotes/{quoteId}/attachments/shared`
- Auth: HTTP bearer

Adds a copy of an existing library document as an attachment to the specified quote.

## Path parameters

- `quoteId` string, uuid, required

## Request body

- CopyAttachmentPayload[]
  - `attachmentId` string, uuid, required

## Response `201`

Created

- AttachmentResponse[]
  - `createdBy` CreatedBy, required
    - `fullName` string, required
    - `id` string, uuid, required
    - `role` string, required
  - `createdOn` string, date-time, required
  - `id` string, uuid, required
  - `name` string, required
  - `order` integer, required
  - `replacedOn` string, date-time
  - `type` string, required
  - `url` string, required

## Other responses

- `400`: Bad Request
- `403`: Authorization Error
- `404`: Not Found

---

[API](https://skmtc.dev/pax8/apis/quoting-endpoints.md) - [All operations](https://skmtc.dev/pax8/apis/quoting-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/pax8/apis/quoting-endpoints/revisions/140cc4ccf34e?raw)
