"The 'data' parameter must be a list"

I’m using the HTTP Request Wizard to set up a POST request to MonkeyLearn. This endpoint expects a JSON in the request body (or payload body). It must be an object with the data property and a list of the texts you want to classify as value. For example:
“data”: [
“This is the best sentiment analysis tool ever!!!”,

So, in the HTTP Request Wizard, I set up under Parameters:
Name: data
Value: “This is the best sentiment analysis tool evert!!!”
Type: GetorPost

However, in the preview response I get:
“status_code”: 422,
“error_code”: “REQUEST_PARAM_PARSE”,
“detail”: “The ‘data’ parameter must be a list”

I can’t figure out what list the endpoint expect?

1 Like