Error response in scripted rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 03:32 AM
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
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 04:15 AM
This might help you
If not then please share couple of screenshot of your scripted rest api and its resource.
Feel free to mark correct and helpful.