How to send array of data to external api

i have an delete api where in body
[
{
“displayId”: ObjectId
}
]

this is passed when using normal nodejs app

but how can this be passed in the bubble external api body

On the list, you use :format as text to format the object in the array and use comma as delimiter.

i want to do for the single data only but dynamic everytime , how can i do it
im not getting formating option

so array with one item?
Why don’t you just set the part you need?

[
    {
        "displayId": <display_id>
    }
]

It’s showing error , sometimes data is not iterateable and sometimes it’s so “unexpected token \ at 5” using then list:format astest

Is display ID an interger or a string? Any link to doc? Share screenshot of your settings

Display I’d is string just like MongoDB any data id

So you need to use double quotes for id

[
    {
        "displayId": "<display_id>"
    }
]

Is the setting you should have in API connector if you are send one item.
If you could have a list to send

[
 <list_items>
]

and in the format as text:

    {
        "displayId": "This item display ID"
    }

Again, it’s easier to help if you share what you have done


error i am
Unexpected token \ in JSON at position 5

Do you have link to API Doc? I could check the requested payload…
Can you create a requestbin or similar tools and send your request there? It will be easier to inspect your payload. You can also use logs to see what you aare sending

But in your screenshot, I think you could have some invalid characters delete all space and line return to be sure
([<list_item>] and {"displayId":"This get banner body data's id"})