Skip to main content
← Data, API & Backend
Data, API & Backend January 2, 2024 · 13 replies

Json Body for Post API?

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hi, how do I correctly add the json body of a post API. What I have currently is the image below but the array is not being picked by the API from a GET. I am using an action remote to trigger the API from frontend.

Screen Shot 2023-12-12 at 11.38.39 PM.png

13 replies

Abu January 2, 2024

@Valter Guerreiro this is json body for the post API request. the one below is the GET API data and a mapped variables

Marielle Ibias Bravo team January 2, 2024

Hi @Abu Sabitu, do you get any error message? Can you specify what is the issue?

I’d suggest using a json body formatter or validator to confirm its correctly set like: https://jsonformatter.org/ or https://json-validator.com/

It’d be nice if you can share the whole json body so we can help :)

Valter January 2, 2024

@Abu Sabitu the POST request should be something like this

Abu January 2, 2024

@Valter Guerreiro here is my the full post request API json body

Abu January 3, 2024

@Marielle Ibias Hi, here is the full json for the Post API, and also selected data from the GET API.

I am using Xano as backend

Marielle Ibias Bravo team January 3, 2024

Hi @Abu Sabitu , the json body looks correct. The array should return a list of “ordered_offerings”. Can you show the GET request you’re mentioning?

Abu January 3, 2024

@Marielle Ibias Hi here is the Selected Data from the GET API.

mainly the issue I am facing is that when I select a single item from the array, the action is executed successfully. however when it is set at all, as an array. the action consistently fails to execute.

attached is also a picture of a single selected data and one with an all data array.

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord