---
title: "Upload preference attachments"
method: POST
path: "/v2/quote-preferences/attachments"
tags: ["Preference attachments"]
---

# Upload preference attachments

`POST /v2/quote-preferences/attachments`

## Request

- Base URL: `https://api.pax8.com`
- URL: `https://api.pax8.com/v2/quote-preferences/attachments`
- Auth: HTTP bearer

Upload preference attachments based on library attachments.

## Request body

- AddPreferenceAttachmentsPayload
  - `attachments` string[], 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)
