createEvent
Mutation
Creates a new Event. This allows for the creation of custom events within the Worlds system.
Response
Returns Event
Arguments
| Name | Type | Description |
|---|---|---|
event | CreateEventInput! | Arguments to create a new event. |
Example
mutation createEvent( $event: CreateEventInput!) { createEvent( event: $event ) { id eventProducer { id name description timezone active invalidReasons metadata } type subType startTime endTime position { type coordinates crs { type properties } } timezone metadata images { id dataSourceId timestamp url thumbnailUrl } dataSourceClips { id dataSource { id name type labels } startTime endTime url thumbnailUrl displayName } properties { tracks { id modelId tag startTime endTime finished metadata } sites { id name timezone } dataSources { id name type labels } tags { id name color } pointsOfInterest { id name metadata } } draft validation { status reason details } priority }}{ "event": { "eventProducerId": "eventProducerId-e9de", "type": "type-e7d2", "startTime": "2025-01-01T00:00:00.000Z" }}{ "data": { "createEvent": { "id": "f28eb593-68bc-8ded-afd1-9c9804718a9f", "eventProducer": { "id": "b5605bea-1817-8d93-8b13-5bc5f2495b00", "name": "name-7d7e", "description": "description-b6f9", "timezone": "timezone-9829", "active": true, "invalidReasons": [ "invalidReasons-5b40" ], "metadata": {} }, "type": "type-8f8a", "subType": "subType-0ba3", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "position": { "type": "type-bd8d", "coordinates": [ 538.37 ], "crs": { "type": "type-8d98", "properties": {} } }, "timezone": "timezone-f06c", "metadata": {}, "images": [ { "id": "71c5045b-8c64-8008-88e1-7cc3beceffe4", "dataSourceId": "0c3f4715-1a80-88eb-9606-bf9ba9d61e66", "timestamp": "2025-01-01T00:00:00.000Z", "url": "url-9d02", "thumbnailUrl": "thumbnailUrl-a1f8" } ], "dataSourceClips": [ { "id": "0c7a2a0d-e19a-879a-83d1-f1aca73cbd4f", "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] }, "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "url": "url-9659", "thumbnailUrl": "thumbnailUrl-840d", "displayName": "displayName-866a" } ], "properties": { "tracks": [ { "id": "58b9a930-5ec7-8c7d-8931-530b08e58c11", "modelId": "f3b1dcb1-ac50-8fce-8509-3e824b58448b", "tag": "tag-70cb", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "finished": false, "metadata": {} } ], "sites": [ { "id": "f5e73b52-9179-8799-92de-27516934ea4d", "name": "name-ac75", "timezone": "timezone-4f92" } ], "dataSources": [ { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] } ], "tags": [ { "id": "5da3e448-af53-83a9-a0be-d3b2db181d15", "name": "name-b03c", "color": "color-3873" } ], "pointsOfInterest": [ { "id": "9bf022b1-0c59-8550-8625-aca917feaaeb", "name": "name-9f71", "metadata": {} } ] }, "draft": true, "validation": { "status": "VALID", "reason": "reason-4ebb", "details": "details-f818" }, "priority": "priority-eba4" } }}