AnsweredAssumed Answered

Update Course Name with API in c#

Question asked by Andrew Day on Dec 12, 2019
Latest reply on Dec 13, 2019 by Jewell Simon

I am having a issue trying to update a course name in c#. I perform the PUT and I get a 200 OK back but the name does not change.


Here are the details:

URL: /api/v1/courses/1724

Content: "{\"id\":1724,\"name\":\"2 Test - 1 Test - Competing in and with China\"}":  - this is the data that is used to initialize the StringContent Object



   string jsonData = JsonConvert.SerializeObject(data);    HttpContent content = new StringContent(jsonData);

    var response = (HttpResponseMessage)Task.Run(async () => await client.PutAsync(urlCommandcontent)).Result;



This returns a 'StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1' but the data is never updated


Does anyone have any ideas??