PUT Method Error

madhusudanshett
Kilo Contributor

Hi Everyone

I have created a PUT method using the REST API Explorer. But other team is not able to consume it with PUT, following error was shown with 415 code

{

  "error": {

      "message": "Invalid content-type. Supported request media types for this service are: [application/json, application/xml, text/xml]",

      "detail": null

  },

  "status": "failure"

}

Please assist me on this issue.

Thanks in advance

5 REPLIES 5

Chuck Tomasi
Tera Patron

Can you share the endpoint that was created (change your instance name to YOURINSTANCENAME for security/anonymity.)


It looks like the header information does not agree with the request body.



What is the other team sending for headers and does that agree with the request body they are sending?



find_real_file.png



find_real_file.png


Hi



Not sure about other team header part.


We have created 3 fields on incident form and trying to update it.



Request Body


{'u_feedback_description':'Test123','u_feedback_value':'5','u_feedback_status':'true'}



They are not able to consume this with PUT and PATCH.



Thanks for the reply.