Webservices Rest call causes error "415 Unsupported Media Type"

Document ID : KB000007913
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

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"

Environment:
Any UMP with Webservices_Rest deployed
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".

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