Unsupported Media Type Error

I am getting unsupported media type error when I am trying to use JSON body for sending dynamic parameters like this:

This is the error:
Screenshot 2020-05-11 at 7.36.47 AM

But when I simply put static parameters like this, it is working:

I suppose this won’t be at the API supplier’s end?

What am I doing wrong?

It got solved by adding “Content-Type” to header like this:

I have no idea why it works without JSON body without adding this, but is needed to be added when giving dynamic variables via JSON.

1 Like