1 Reply Latest reply on Jan 18, 2018 8:53 PM by mtuljapurkar

    Unable to upload user profile using REST API


      Hello all,

      i am new to Jive are trying integration to change the user profile from our provisioning middleware .

      i tried to create sample and made several tests but I can get always 415 (Unsupported media type).

      Here's my code, C# .NET 4.0:


      string wUrl = "https://xxxxxxxx/api/core/v3/people/2054";

      String encoded = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password));


      WebClient client = new WebClient();

      client.Headers[HttpRequestHeader.Accept] = "application/json";

      client.Headers[HttpRequestHeader.ContentType] = "application/json";

      client.Encoding = System.Text.Encoding.UTF8;

      client.Headers[HttpRequestHeader.Authorization] = "Basic " + encoded ;


      var person = client.DownloadString(wUrl);

      JObject root = JObject.Parse(person);


      var response = client.UploadString(wUrl, "PUT", root.ToString());




      What am I doing wrong?

      Using a RESTClient, everything works properly.


      I'd appreciate any replies that can help.