---
title: "Create an attachment on a custom note field"
method: POST
path: "/custom_fields/{custom_field_id}/attachments"
tags: ["Attachments"]
---

# Create an attachment on a custom note field

`POST /custom_fields/{custom_field_id}/attachments`

Files can be uploaded to Aha! as a sub-resource on any resource that supports them.
These resources support attachments:

- [Record descriptions](/api/resources/attachments/create_an_attachment_on_a_record_description) (the description of a feature, requirement, etc.)
- [Comments](/api/resources/attachments/create_an_attachment_on_a_comment)
- [To-dos](/api/resources/attachments/create_an_attachment_on_a_to-do)
- [Custom note fields](/api/resources/attachments/create_an_attachment_on_a_custom_note_field)

The format of an attachment is either a `multipart/form-data` upload with
the input name `attachment[data]` or a JSON payload pointing to an URL link:

```json
{
  "attachment": {
    "file_url": "https://www.aha.io/",
    "content_type": "text/html",
    "file_name": "home_page.html"
  }
}
```

## Path parameters

- `custom_field_id` string, required

## Response `200`

Successful operation

---

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