Bubble POST API boolean parameter

I am trying to send a POST request to an external API, by passing two parameters :
“availability_id”: 1,
“unavailable”: false
However unavailable is never recognized as a boolean, I tried true/false, yes/no, 1/0. I get the following error from the API endpoint : Not a boolean value: ‘false’.

Hmm :thinking:

I would try adding it in the Body below instead of a Parameter. Or try checking the box Queryst. to see if that helps. :man_shrugging:

@theophile yes, it has to be in body as Bubble doesn’t know what type of parameter is being sent so it sends all as strings.

1 Like

Thank you it worked ! :slight_smile: