> For the complete documentation index, see [llms.txt](https://api.hivepress.io/llms.txt)

# Upload an attachment

> POST /attachments



## Servers
- /wp-json/hivepress/v1: /wp-json/hivepress/v1



## Parameters



### Body: application/json (object)

- **parent** (integer)
  Parent object ID.

- **parent_model** (string)
  Parent model name (e.g. `user`).

- **parent_field** (string)
  Parent model field (e.g. `image`).

- **file** (string(file))
  File contents.



## Responses
### 201



[Powered by Bump.sh](https://bump.sh)
