# Upload attachment via API

**URL:** <https://community.nocodb.com/t/upload-attachment-via-api/1452>\
**Category:** APIs\
**Created:** [October 29, 2024, 10:26pm UTC](https://community.nocodb.com/t/upload-attachment-via-api/1452 "2024-10-29T22:26:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![not-the-real-chopin](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@not-the-real-chopin](https://community.nocodb.com/u/not-the-real-chopin)\
**Post date:** [October 29, 2024, 10:26pm UTC](https://community.nocodb.com/t/upload-attachment-via-api/1452/1 "2024-10-29T22:26:56Z")

</div>

I need to create a record that contains a field of type “attachment”. The attachment field is not part of the open-api spec that contain only the other fields. Any suggestion?

---

<div class="post-metadata">

**Author:** ![dstala](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dstala](https://community.nocodb.com/u/dstala)\
**Post date:** [October 30, 2024, 4:38am UTC](https://community.nocodb.com/t/upload-attachment-via-api/1452/2 "2024-10-30T04:38:48Z")

</div>

Example is [here](https://github.com/nocodb/nocodb/discussions/369#discussioncomment-9198240).

API docs [here](https://data-apis-v2.nocodb.com/#tag/Storage/operation/storage-upload)
