Webservices Rest call causes error "415 Unsupported Media Type"

book

Article ID: 7913

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

The customer tried to create a new maintenance schedule via Rest calls using a json script and received the  status response "415 Unsupported Media Type"

Cause

Webservices_rest could not determine the type of the content in the body of the POST call made against the UMP server and raised the error "415 Unsupported Media Type".

Environment

Any UMP with Webservices_Rest deployed

Resolution

The customer had to add two header variables to resolve this issue:

Name           |   Content

====================

Content-Type |  application/json

------------------------------------

Accept           | application/json

Additional Information

Please check the call reference for the required details for each Rest call:

https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/probe-development-tools/restful-web-services/call-reference