I am trying to update or reschedule a scheduled meeting or changing the date of a scheduled meeting to the next month in visual studio with restsharp.
This is the link of Zoom API version 2 docs:
https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingUpdate
I can create meeting but I cannot update the meeting. Its not working. I am new so Kindly help me.
Below is my Code:
public ActionResult EmployeeUpdate(string employee)
{
var client = new RestClient("https://api.zoom.us/v2/meetings/{MeetingId}"); //long type
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("authorization", "Bearer " + "ZoomJWTToken");
request.AddJsonBody(new
{
topic = "Future Meeting",
type = 2,
start_time = "2022-03-25T6:00:00",
duration = 30,
timezone = "Asia/Tashkent",
password = "password"
});
IRestResponse response = client.Execute(request);
HttpStatusCode statusCode = response.StatusCode;
int numericStatusCode = (int)statusCode;
Assert.Equal(204, numericStatusCode);
return NoContent();
}