Error response in scripted rest API

noa
Tera Contributor

Hi 
I have processor that get trigger form webhooks in another application and work ok.

We're trying to move all the processor funcunality to scripted rest API  but the webhook get error :

415 Unsupported Media Type.

The scripted rest has only log for now and return 

response.setContentType('application/json');
response.setStatus(200);

I can call the rest from postman for example but something in the request header blocks.

How can I see the request header and how I can fix it ? 

thank you 

 

1 REPLY 1

RAHUL YADAV9
Mega Guru

This might help you

Getting Error 415 : Unsupported Media Type for a REST outbound message. - Developer Community - Ques...

If not then please share couple of screenshot of your scripted rest api and its resource.

 

Feel free to mark correct and helpful.