---
title: "Attach a file on an object"
method: POST
path: "/apps/{appId}/attachments"
tags: ["Attachments"]
---

# Attach a file on an object

`POST /apps/{appId}/attachments`

## Path parameters

- `appId` integer, required

## Query parameters

- `type` 'none' | 'purchase' | 'invoice' | 'quote' | 'transaction' | 'relationship', required
- `attachable_id` integer
- `file` string, binary

## Response `200`

Success

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.net/sinao/apis/sinao-api.md) · [All operations](https://skmtc.net/sinao/apis/sinao-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinao/sinao-api/revisions/436b47b78bf4/schema)
