How do I set an array of objects through import CURL command when I create an external API request?

Hello,

I'm trying to set my external API request through import CURL. I'm hitting a roadblock when my request body has an array of objects. The number of objects in the array is dynamic and depends on a previous step in my Xano function. In the attached image, I send my array inputs in "template_to_build". It has 2 key-value pairs, one is template_name and another is display_name.

I'm not quite sure how to set this up in the json part that gets built by Xano.

If I give the value as as "signature_templates_to_be_built.1.template_name", it obviously picks up the 2nd object in the array.

I tried passing "signature_templates_to_be_built.template_name" and I get an Internal Serve error since the params is as below. All templates names together and all display names together.

How do I set them up as key-value pairs?

templates_to_build: [ {

template_name: [

Circular Profile Picture,

Full Size Profile Picture,

Vertical Box - Full Size Profile Picture

],

display_name: [

The Halo,

Full Focus,

Uptown Vertical

]

}

],

Screenshot 2025-01-15 145828.jpg
82.07KB

2 replies