> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/office-365/activities/calendar/modify-event.md).

# Modify Event

Updates an existing event.

This activity updates the properties (date, time, and content) of an existing event using the Microsoft Graph [Update event](https://docs.microsoft.com/en-us/graph/api/event-update?view=graph-rest-1.0\&tabs=http) API.

### Input

* **Connection Id:** [`GraphServiceClient Variable`](/getting-started/rpa-studio/variables.md#graphserviceclient) <mark style="color:red;">`Required`</mark>\
  Specifies the office 365 connection id.
* **Account:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies an email address with which to interact. This property can include any shared mailbox to which the current user has access rights. If the property field is left empty, the current user's account is used. This is an **optional** property.
* **Event:** [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)  <mark style="color:red;">`Required`</mark>\
  Specifies the event as [Event ](/getting-started/rpa-studio/variables.md#event)that is to be modified. We can also specify the output variable of either the [Create Event](/integrations/office-365/activities/calendar/create-event.md) activity or [Search Events](/integrations/office-365/activities/calendar/search-events.md) activity (which is an Event or Event\[ ]) directly as input in this property. If we are using the Events property of **Search Events** activity then we can directly specify the element in the array. For example : Events\[1].

### Event Content

* **Body:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)  <mark style="color:red;">`Required`</mark>\
  Specifies the body of the event. If the **Is Body HTML** property is set to **true**, then the body needs to be specified in HTML format.
* **Subject:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)  <mark style="color:red;">`Required`</mark>\
  Specifies the subject of the event.
* **Is Body Html:**\
  Specifies whether the event body is written in HTML format or not.

### Event Scheduling

* **Start Time:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the start time of the event in [**DateTime**](/rpa-studio/datetime.md) format. The input should be given in **double-quotes**."\\
* **End Time:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the end time of the event in [**DateTime**](/rpa-studio/datetime.md) format. The input should be given in **double-quotes**."
* **Timezone:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the time zone in which the Start Time and End Time are to be interpreted. The default value is the local system time zone.

### Options

* **Categories:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the categories associated with the event. The category entered must match a name from the user-specified **Calendar** list of categories. Each of the categories should be separated by a **semicolon**.

![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-a1823f5a029039ab0d1ab41b741ecbd025c1a0b8%2Fimage.png?alt=media)

* **Is All Day:**\
  If set to **true**, the event is scheduled for the entire day and the values entered in the Start Time and End Time properties will be overwritten. If set to **true**, values should be entered in both the Start Time and End Time properties.
* **Show As:**\
  Specifies the user's availability during the event. By default the value is **Free.** The available options are:
  * **Unknown**
  * **Free**
  * **Tentative**
  * **Busy**
  * **Oof**
  * **WorkingElsewhere**
