{
"data": {
"type": "event_from_template",
"relationships": {
"event_template": {
"data": {
"type": "event_templates",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
},
"attributes": {
"name": "My Event",
"duration": 60,
"start_at": 1554392102,
"start_mode": "manual",
"repeat": false,
"end_mode": "duration"
}
}
}
{
"data": {
"id": "a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d",
"type": "events",
"attributes": {
"name": "My Event",
"duration": 60,
"original_duration": 60,
"start_mode": "manual",
"state": "future",
"action": "start",
"repeat": false,
"repeat_in": null,
"start_at": 1554392102,
"start_at_iso": "2019-04-04T15:35:02Z",
"end_at": 1554392162,
"end_at_iso": "2019-04-04T15:36:02Z",
"end_mode": "duration",
"live_stats_uuid": "string",
"on_demand_duration": 0,
"extra_time_duration": 0,
"settings": [
{
"key": "prompt_live_event",
"values": {
"en": "Another Text",
"de": "Ein anderer Text"
}
}
]
},
"relationships": {
"elements": {
"links": {
"related": "https://environment.monterosa.cloud/api/v2/events/a7fde717-6100-4377-8530-fbad083eb768/elements"
}
},
"stats": {
"data": {
"type": "stats",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
},
"project": {
"data": {
"type": "projects",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
},
"links": {
"self": "https://environment.monterosa.cloud/api/v2/projects/a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d"
}
}
}
curl --request POST \
--url https://environment.monterosa.cloud/api/v2/events/create_from_template \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "event_from_template",
"relationships": {
"event_template": {
"data": {
"type": "event_templates",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
},
"attributes": {
"name": "My Event",
"duration": 60,
"start_at": 1554392102,
"start_mode": "manual",
"repeat": true,
"repeat_in": 120,
"end_mode": "duration"
}
}
}'