cancel
Showing results for 
Search instead for 
Did you mean: 

Error in REST POST

Darshita
New Contributor II

Hello,

Please suggest what could be causing the following error in REST POST Response:

“error”:

“REST API service endpoint returned error result: status code = 415, reason phrase = Unsupported Media Type”

Which setting can be changed for this?

2 REPLIES 2

tlikarish
Employee
Employee

A HTTP Status Code of 415 means the server does not like the Content-Type of the REST Post. Can you verify that it’s being set correctly and that the server allows content of that type in the request?

Darshita
New Contributor II

Thank you! I just added Content-Type to the header and it worked.