REST API xml data instead json

Hello! 

1IM 8.1.2

I need call rest api methods with xml data instead json. 

How can I do it?