Create Event
Create event within specified project.
Create Event
POST
https://environment.monterosa.cloud/api/v2/events
Headers
Authorization*
string
Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
Content-Type*
string
application/vnd.api+json
Request Body
name*
string
Event name.
duration*
integer
Event duration in seconds.
start_at*
integer
Planned event start time (timestamp).
start_mode*
string
Start mode, one of : "manual", "clock".
repeat
boolean
true
to say this event has to be automatically recreated after it's finished.
repeat_in
integer
Repeat event will be automatically created in repeat_in minutes after end of original event.
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: start
- start manual event.
end_mode
string
Event end mode. One of "duration", "scheduled".
Create Event
POST
https://environment.monterosa.cloud/api/v2/events
Headers
Authorization*
string
l0gVURLT5MSG
Content-Type*
string
jC0pJgVvaRez
Request Body
name*
string
Rru6E9cNrwMM
duration*
integer
ynFRpKtMu1dd
start_at*
integer
2rkZo70YXc2p
start_mode*
string
g3akxzkckjw4
repeat
boolean
FziJr1EXJKoi
repeat_in
integer
nvEFFVNVMdMI
settings
array
3zopTTH1dlw0
action
string
PeCtM00JQxAI
end_mode
string
6b4AMZ1ZF0aW
Example
Create an event and start it
To start new event action
must be set to start
. Otherwise event will be started according to start_mode
and start_at
properties.
Validation error message about an invalid attribute
Last updated
Was this helpful?