Currently, events are created on the outlook calendar from my portal now I want to apply colors when I create events using graph API
I also follow Microsoft Documentation like
https://learn.microsoft.com/en-us/graph/api/calendar-post-events?view=graph-rest-1.0&tabs=csharp
but I am unable to find out how I pass color to the graph API when I create an event.Here is the sample code.
RestClient restClient = new RestClient();
RestRequest restRequest = new RestRequest();
restRequest.AddHeader("Authorization", "Bearer " + refresh_tokenObj.outlookTokenViewModel.access_token);
restRequest.AddHeader("Content-Type", "application/json");
restRequest.AddParameter("application/json", JsonConvert.SerializeObject(calendarEvent), ParameterType.RequestBody);
restClient.Options.BaseUrl = new Uri("https://graph.microsoft.com/v1.0/me/calendar/events");
var response = restClient.Post(restRequest);
if (response.StatusCode == System.Net.HttpStatusCode.Created)
{
dynamic data = JObject.Parse(response.Content);
eventId = data.id;
//return RedirectToAction("Index", "Home");
}