Update Event
Update event with specified id.
Update Event
PATCH
https://environment.monterosa.cloud/api/v2/events/:event_id
Path Parameters
Name | Type | Description |
---|---|---|
event_id | string | Event ID. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb |
Content-Type | string | application/vnd.api+json |
Request Body
Name | Type | Description |
---|---|---|
name | string | Event name. |
duration | integer | Event duration in seconds. |
start_at | integer | Planned event start time (timestamp). |
start_mode | string | Start mode. Possible values: "manual", "clock". |
repeat | boolean | Repeat mode. |
repeat_in | integer | When to start repeat event after previous event end, in minutes. |
settings | array | List of fields of event settings. Each field is updated separately and if present its content is rewritten completely. |
action | string | Set to perform action on event. Possible actions: |
end_mode | string | Event end mode. One of "duration", "scheduled". |
Example
Actions on an event
An example how to start a manual event.