# API call with attachment field \[Sep 26\]

**URL:** <https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690>\
**Category:** Discord-Discussions\
**Created:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690 "2022-11-03T10:53:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690/1 "2022-11-03T10:53:04Z")

</div>

> 🙋‍♂️ **Guy Butts (datalytyks)** _asked_

## Do we have a “help” channel? Trying to make an api call to create a record with an attachment field and running into issues. Thanks!

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690/2 "2022-11-03T10:53:05Z")

</div>

> 👨‍🦲 **dstala** _replied_

#### use storage API : `upload` or `uploadByUrl` to add attachment file into storage;

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690/3 "2022-11-03T10:53:06Z")

</div>

> 👨‍💻 **pranavxc** _replied_

#### 1. First you have to upload file using our storage api - [https://all-apis.nocodb.com/#tag/Storage/operation/storage-upload](https://all-apis.nocodb.com/#tag/Storage/operation/storage-upload)

#### 2. Use the response from storage api and provide the attachment column as JSON array of attachment( response from first one )

#### - [https://all-apis.nocodb.com/#tag/DB-table-row/operation/db-table-row-create](https://all-apis.nocodb.com/#tag/DB-table-row/operation/db-table-row-create)

#### 

#### Sample payload ```json

#### {

#### “title”: “abc”,

#### “attachmenttColumnName”: “[{"url": "string", "fileName":"string", "mimetype": "string", "size": "string"}]”

#### }

#### ```

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690/4 "2022-11-03T10:53:07Z")

</div>

> 🙋‍♂️ **Guy Butts (datalytyks)** _replied_

#### Beautiful, works like a charm and I’m back in business, thanks!! Loving NocoDB so far!

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:53am UTC](https://community.nocodb.com/t/api-call-with-attachment-field-sep-26/690/5 "2022-11-03T10:53:08Z")

</div>

[Autogenerated from discord](https://discord.com/channels/661905455894888490/1021094701522239550)

* * *

#### Join [NocoDB’s](http://www.nocodb.com/) community

[Discord](https://discord.gg/5RgZmkW) • [Twitter](https://twitter.com/nocodb) • [Reddit](https://www.reddit.com/r/NocoDB/) • [Docs](https://docs.nocodb.com/)
