clip
Mutation
Response
Returns DataSourceClip
Arguments
| Name | Type | Description |
|---|---|---|
input | CreateClipInput! | Arguments to create a video clip from a data source. |
eventIds | [ID!] | Optional IDs for events to associate with the clip. |
activityChronicleIds | [ID!] | Optional IDs for activity chronicles to associate with the clip. |
Example
mutation clip( $input: CreateClipInput!, $eventIds: [ID!], $activityChronicleIds: [ID!]) { clip( input: $input, eventIds: $eventIds, activityChronicleIds: $activityChronicleIds ) { id dataSource { id name type device { id uuid externalId name enabled address frameRate transcoderId lastHeartbeat } zones { id name active createdAt updatedAt } labels } startTime endTime url thumbnailUrl displayName }}{ "input": { "dataSourceId": "8061cec9-8f29-886e-9fd0-6b67ea9a7ad3", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" }}{ "data": { "clip": { "id": "0c7a2a0d-e19a-879a-83d1-f1aca73cbd4f", "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "device": { "id": "61d2e4db-361d-8d20-92f2-04f4efd74ac2", "uuid": "c43d07da-1005-849e-88e2-1ac21370e6c3", "externalId": "fb6f96a9-958e-889f-8d8b-56797ec9a35c", "name": "name-c8f9", "enabled": true, "address": "address-b541", "frameRate": 198.29, "transcoderId": "26ca1b82-27b2-8a32-9063-ce85dbc5be74", "lastHeartbeat": "2025-01-01T00:00:00.000Z" }, "zones": [ { "id": "9bc230c0-d8c6-87f8-89d2-790b14007ed2", "name": "name-bf20", "active": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z" } ], "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" } }}