# Need help: Troubleshoot Error while using JSON template to create JSON Object

**URL:** <https://community.glideapps.com/t/need-help-troubleshoot-error-while-using-json-template-to-create-json-object/77432>\
**Category:** Ask for Help\
**Created:** [October 29, 2024, 4:29am UTC](https://community.glideapps.com/t/need-help-troubleshoot-error-while-using-json-template-to-create-json-object/77432 "2024-10-29T04:29:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [October 29, 2024, 4:29am UTC](https://community.glideapps.com/t/need-help-troubleshoot-error-while-using-json-template-to-create-json-object/77432/1 "2024-10-29T04:29:14Z")

</div>

Hi Guys,

I have to make a Post API call to send some data.

The JSON body that API is expecting is as follows

```auto
{
    "tracking_urls": ["https://www.instagram.com/p/C5xojT2yMyd/","https://www.youtube.com/shorts/hMqpW_oTeaQ"],
    "name": "Test Campaign - 2024",
    "brand_name": "Test Brand",
}

```

But when I create JSON object by using JSON Template columns by including values from my respective column

```auto
{
  "tracking_urls": [
    "https://www.instagram.com/p/DA6AeOgND_Y/"
  ],
  "name": "Testing Saree Campaign",
  "brand_name": "Kay Sarees"
}

```

This is my template column

```auto
{
    "tracking_urls": [$postedContentURL],
    "name": $Campaign_Name,
    "brand_name": $brandname_ylytic
}

```

When I am hitting the API it gives me 400 error in glide, but in postman it works fine. Is it because columns are bot getting values by the time API is called?

Thank you in advance

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [October 29, 2024, 5:01am UTC](https://community.glideapps.com/t/need-help-troubleshoot-error-while-using-json-template-to-create-json-object/77432/2 "2024-10-29T05:01:12Z")

</div>

I got it to work. There was a small issue with values set in template.

Thank you.

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 5, 2024, 5:01am UTC](https://community.glideapps.com/t/need-help-troubleshoot-error-while-using-json-template-to-create-json-object/77432/3 "2024-11-05T05:01:20Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
