I am using the API connector to setup an API call that provides for the option of sending through an array.
I have set things up properly as far as I can tell but keep getting the error message that the Body is not proper JSON formatting. I have tested the formatting and found it to be setup properly, which makes me believe for some reason the used in the input for the dynamic body parameter is not getting recognized.
I’ve used this same setup for various APIs and it has worked consistently.
I tried that formatting and the error is persistent.
“<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>300Request Body should be a valid JSON object.”
Putting it into the validator I am using it fails, and I think that I had attempted this formatting to begin with as it works in other API calls for lists. I had only changed it from this after checking the validator, and working through it on there, the way I used it and exemplified in this post it was considered valid from the online validator.
Also, the docs make it loook like that goes on the payload body as text. So, not inputting the data as a form (key/value pairs) I could be wrong there.
Yep. It’s weird depending on the environment. In some, the keys don’t need quotations. Sometimes it’s just trial and error. Sometimes the providers will be specific.