Pass XML body contents in Rest API


#1

Hey, I am trying to send post request with XML contents.
I have set up content type to application/xml and copied the XML contents in HTTP body tab.
When I run request it returns 406 with error text/html is not supported.
Can you help how can I fix it?


#2

Hello ,
content type filed must be change "text/xml;charset=utf-8 " and repeat run.


#3

So the trick was I was missing Accept Header :slight_smile:
image