SiteScope 11.31.491 REST API Returns 415 Unsupported Media Type

Hello - I am getting a 415 unsupported media type HTTP code returned every time I attempt a POST call to the SiteScope 11.31.491 REST API. I'm using Content-Type: application/x-www-form-urlencoded and the body contains querystring-like formatted text of paramters and values. Is this media type not supported in this version? The documentation does not state what media type to use or show an example HTTP request.

Parents
  • Hi seanmerron,

    this seems the be a typical issue with the REST APIs, mssing documentation on what Content-Type should be used,
    although I've seen this for BSM only - until now.
    You didn't mention what exact call you used and failed on, so I did a more global search and found these types:

    MediaType.MULTIPART_FORM_DATA
    MediaType.APPLICATION_JSON

    So simply give it a try with
     Content-Type: multipart/form-data
    or
     Content-Type:application/json
    one of it should do the trick.

    Greetings
    Siggi

Reply
  • Hi seanmerron,

    this seems the be a typical issue with the REST APIs, mssing documentation on what Content-Type should be used,
    although I've seen this for BSM only - until now.
    You didn't mention what exact call you used and failed on, so I did a more global search and found these types:

    MediaType.MULTIPART_FORM_DATA
    MediaType.APPLICATION_JSON

    So simply give it a try with
     Content-Type: multipart/form-data
    or
     Content-Type:application/json
    one of it should do the trick.

    Greetings
    Siggi

Children