When executing a PutAsync or PutAsJsonAsync, I am getting an OK response back but am not seeing the data being updated.
I am trying to update several quiz names from a "PRE_" to a "POST_" and make sure the results are always hidden. I get a response of success but have yet to see any quiz names get updated. Does anyone know why?
string newQuizName = quizName.Replace("PRE_", "POST_");
QuizUpdate q = new QuizUpdate();
q.title = newQuizName;
q.hide_results = "always";
string jsonData = JsonConvert.SerializeObject(q);
HttpContent content = new StringContent(
string uri = Canvas.mainUri.ToString() + Canvas.httpAdd.ToString();
HttpResponseMessage response = await client.PutAsync(uri, content);
Console.WriteLine("Succes:" + newQuizName);