How to I send boolean with Reinitialize API call?

I have this GraphQL External API that expects a boolean: Image 2023-03-07 at 12.44.1...

I am getting this error which suggests that Reinitialize is sending “true” as a string: Image 2023-03-07 at 12.42.3...

I have another similar API that works fine.

How can I get the “Reinitialize call” button to generate the call correctly (as a boolean, true)?

delete double quotes around your parameters
"true" is a string in json, not a boolean. Must be true

I do not have quotes around it. See first screen shot: Image 2023-03-07 at 12.44.1...

Yes, in the json body you have double quotes

I don’t understand.

I am not generating a JSON body.

The “Reinitialize call” button in the Bubble API editor is generating the JSON body.

Am I missing something?

@Jici I mis-undertood what you meant.

Yes, that is the solution. Thank you!

I changed: "existingBuyer":"<existingBuyer>" to "existingBuyer":<existingBuyer>

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.