Webservices Rest call causes error "415 Unsupported Media Type"
search cancel

Webservices Rest call causes error "415 Unsupported Media Type"

book

Article ID: 7913

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

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"

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:
uimapi Call Reference (broadcom.com)