Error 415 Unsupported media type. The payload is unsupported format.

Causes

Error occurs when the origin server refuses a particular request since the resource is in a format that is not supported by the HTTP method used.

Fixes

Step 1: Sending Proper Content-Type

Ensure that you are sending the proper content-type and header value.

Step 2: Verify Value

Verify that your server is able to process the value defined in the content-type header.

Step 3: Check The Accept Header

Check the Accept header to verify what the server is actually willing to process.