---
title: "Add an attachment"
method: POST
path: "/attachments/account/{accountId}"
tags: ["Attachments"]
---

# Add an attachment

`POST /attachments/account/{accountId}`

Attaches a document to the specified account. The post body should contain the body of the document that is to be attached. On success the Id of the attachment is returned.

## Path parameters

- `accountId` string, required

## Query parameters

- `fileName` string
- `description` string
- `tag` 'MASTER_SUBSCRIPTION_AGREEMENT' | 'STATEMENT_OF_WORK' | 'ORDER_FORM' | 'OTHER'

## Response `200`

successful operation

- Attachment
  - `id` string, uuid, required
  - `name` string, required
  - `description` string
  - `status` 'UPLOADING' | 'UPLOADED'
  - `accountId` string
  - `tag` 'MASTER_SUBSCRIPTION_AGREEMENT' | 'STATEMENT_OF_WORK' | 'ORDER_FORM' | 'OTHER'
  - `inUse` boolean
  - `isDeleted` boolean
  - `createdOn` integer, required
  - `updatedOn` integer

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/versions/c30f5b9fbfab/schema)
