External API Request with raw/binary body

Options
Stefan Pointecker
Stefan Pointecker Member
edited February 2023 in ? Working with APIs

Hi again,

I am trying to send data to the algolia API. see https://www.algolia.com/doc/rest-api/search/#addupdate-object-with-id

The API expects the data to be in the body, with —data-binary/raw.

How can I send the data like that? It is not working with the params option from the external api request function.

I also tried the “import from curl” method but same result, the API is not happy with the data format I am sending.

test data:

Error message: “lexical error: invalid string in json text. Around 'name=Betty'”

Best Answer

Answers