# Dynamic Variable inside REST API Body

**URL:** <https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114>\
**Category:** Ask us anything\
**Tags:** supabase\
**Created:** [September 11, 2024, 7:23pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114 "2024-09-11T19:23:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lantzgould](https://community.weweb.io/u/Lantzgould)\
**Post date:** [September 11, 2024, 7:23pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114/1 "2024-09-11T19:23:34Z")

</div>

Hey all,

I’m trying to build a feature in my app where I allow users to create custom columns in my tables via API.

I have this working by itself, but I wanted to make the type of the column a variable that can be dynamically inserted. For some reason, I can’t get this to work with all the methods I’ve tried. Not sure if this is a limitation or something I’m doing wrong.

Any help is appreciated!

 ![CleanShot 2024-09-11 at 12.18.08@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a89a5ed1cbbd9e76ba65317ab8a90aff624deac6.jpeg)

---

<div class="post-metadata">

**Author:** ![Lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lantzgould](https://community.weweb.io/u/Lantzgould)\
**Post date:** [September 11, 2024, 7:35pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114/2 "2024-09-11T19:35:09Z")

</div>

Eh, figured it out. Use the concat function with a break 🤙

 ![CleanShot 2024-09-11 at 12.33.07@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1e40e998650cf0f3989b665567b694ce3b54091d.jpeg)

---

<div class="post-metadata">

**Author:** ![Lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lantzgould](https://community.weweb.io/u/Lantzgould)\
**Post date:** [September 11, 2024, 8:01pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114/3 "2024-09-11T20:01:34Z")

</div>

Woo! Workin’ nicely.

![CleanShot 2024-09-11 at 12.59.25](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a1941a095dbe5e96071e7ec9008f21544a135abe.gif)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [September 11, 2024, 8:07pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114/4 "2024-09-11T20:07:54Z")

</div>

You most probably shouldn’t be doing this in a public app (non internal)

---

<div class="post-metadata">

**Author:** ![Lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lantzgould](https://community.weweb.io/u/Lantzgould)\
**Post date:** [September 11, 2024, 8:18pm UTC](https://community.weweb.io/t/dynamic-variable-inside-rest-api-body/12114/5 "2024-09-11T20:18:03Z")

</div>

Haha yes, this is only internal for our team. Each user has a unique token for logging/audit, too.
