# Bulk Add Rows \[Feb 26\]

**URL:** <https://community.nocodb.com/t/bulk-add-rows-feb-26/182>\
**Category:** Discord-Discussions\
**Created:** [November 3, 2022, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182 "2022-11-03T07:56:11Z")\
**Posts on this page:** 11\
**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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/1 "2022-11-03T07:56:11Z")

</div>

> 🙋‍♂️ **Akshay** _asked_

## Hello everyone! I’m trying to bulk add rows. I have a column which is a link to another record. Not able to add the connected record in this process. Couldn’t find this in the docs either. I would appreciate any help! Thank you!

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/2 "2022-11-03T07:56:12Z")

</div>

> 👨‍🦲 **dstala** _replied_

#### Akshay@discord Could you help us with more information? By what method are you attempting bulk-add procedure?

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/3 "2022-11-03T07:56:14Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### I’m using the REST API. Tried both the row level post request `/api/v1/tableName` as well as `/api/v1/tableName/bulk`. My questions is how does one add a column which is linked to another record via REST API. Thank you!

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/4 "2022-11-03T07:56:15Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### When I do add link to another record over UI the frontend calls the API `/api/v1/m2mTable1_Table2`. However this isn’t documented anywhere. Was trying to figure the best way to go about it.

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/5 "2022-11-03T07:56:16Z")

</div>

> 💁 **o1lab** _replied_

#### inserting to relational table is not possible with bulk, something we will improve going forward

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/6 "2022-11-03T07:56:17Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### o1lab@discord How does one do it one row at a time? When I tried ` /api/v1/tableName/:parentId/childTableName` I keep getting a 404. Am I getting the name of the childTable wrong? How do I know what name to use?

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/7 "2022-11-03T07:56:18Z")

</div>

> 💁 **o1lab** _replied_

#### the api path will be there in swagger

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/8 "2022-11-03T07:56:19Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### o1lab@discord Got it. Thanks so much! Will test this.

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/9 "2022-11-03T07:56:20Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### So I just tested the addition of a linked record via the API. It turns out that there are two ways to do it.

#### 

#### via

#### 

#### `parent/id/m2mParentChild` OR

#### `m2mParentChild`

#### 

#### Both accept the same parameter

#### 

#### ```

#### {

#### “table\_1”: “id1”,

#### “table\_2”: “id2”

#### }

#### ```

#### 

#### However the docs say

#### 

#### ```

#### {

#### city: “test”

#### }

#### ```

#### 

#### Should I report this?

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/10 "2022-11-03T07:56:22Z")

</div>

> 🙋‍♂️ **Akshay** _replied_

#### The difficulty here is that to associate any two links I’d have to first run a query to get the relevant id for that entity and then add to the table. Was wondering if it were possible to add via the designated `Primary Key`. However the API only supports an internal ID generated regardless of what is assigned as the primary key.

#

---

<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, 7:56am UTC](https://community.nocodb.com/t/bulk-add-rows-feb-26/182/11 "2022-11-03T07:56:23Z")

</div>

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

* * *

#### 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/)
