Creating Event Types
Creating Event Types - Using the interface






Creating Event Types - Using the API
Creating Event Type - Customer Flying
Creating Event Type - Prohibited Airspace Intrusion
Creating Event Type - Potion Ineffective
Last updated
POST api.skyledge.com/event-types
{
"name":"Customer Flying",
"title":"Customer flying in {{location}}",
"description":"{{customerFirstName}} successfully took off.",
"locationType":"Point",
"defaultImportanceLevel":0,
"controlRooms":[
"CONTROL_ROOM_ID"
]
}
curl --location --request POST 'https://api.skyledge.com/event-types' \
--header 'X-Authorization: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"Customer Flying",
"title":"Customer flying in {{location}}",
"description":"{{customerFirstName}} successfully took off.",
"locationType":"Point",
"defaultImportanceLevel":0,
"controlRooms":[
"CONTROL_ROOM_ID"
]
}'import { Configuration, EventTypeRequest, EventTypesApi } from '@skyledge/sdk';
const configuration = new Configuration({
apiKey: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX',
basePath: 'https://api.skyledge.com',
});
const controlRoomId = CONTROL_ROOM_ID;
const data: Partial<EventTypeRequest> = {
name: 'Customer Flying',
title: 'Customer flying in {{location}}',
description: '{{customerFirstName}} successfully took off.',
locationType: 'Point',
defaultImportanceLevel: 0,
controlRooms: [controlRoomId],
};
const eventTypeApi = new EventTypesApi(configuration);
const newEventType = await eventTypeApi.createAnEventType(data);
console.log(newEventType.status);
import requests
import json
url = "https://api.skyledge.com/event-types"
payload = json.dumps({
"name": "Customer Flying",
"title": "Customer flying in {{location}}",
"description": "{{customerFirstName}} successfully took off.",
"locationType": "Point",
"defaultImportanceLevel": 0,
"controlRooms": [
"CONTROL_ROOM_ID"
]
})
headers = {
'X-Authorization': 'API_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
POST api.skyledge.com/event-types
{
"name":"Prohibited Airspace Intrusion",
"title":"Flying Person Detected in {{location}} - Prohibited Airspace",
"description":"A flying person has been detected in a prohibited airspace",
"locationType":"Point",
"defaultImportanceLevel":2,
"controlRooms":[
"{controlRoomId}"
]
}
curl --location --request POST 'https://api.skyledge.com/event-types' \
--header 'X-Authorization: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"Prohibited Airspace Intrusion",
"title":"Flying Person Detected in {{location}} - Prohibited Airspace",
"description":"A flying person has been detected in a prohibited airspace",
"locationType":"Point",
"defaultImportanceLevel":2,
"controlRooms":[
"CONTROL_ROOM_ID"
]
}'
import { Configuration, EventTypeRequest, EventTypesApi } from '@skyledge/sdk';
const configuration = new Configuration({
apiKey: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX',
basePath: 'https://api.skyledge.com',
});
const controlRoomId = CONTROL_ROOM_ID;
const location = LOCATION;
const data: Partial<EventTypeRequest> = {
name: 'Prohibited Airspace Intrusion',
title: `Flying Person Detected in {{${location}}} - Prohibited Airspace`,
description: 'A flying person has been detected in a prohibited airspace',
locationType: 'Point',
defaultImportanceLevel: 2,
controlRooms: [controlRoomId],
};
const eventTypeApi = new EventTypesApi(configuration);
const newEventType = await eventTypeApi.createAnEventType(data);
console.log(newEventType.status);import requests
import json
url = "https://api.skyledge.com/event-types"
payload = json.dumps({
"name": "Prohibited Airspace Intrusion",
"title": "Flying Person Detected in {{location}} - Prohibited Airspace",
"description": "A flying person has been detected in a prohibited airspace",
"locationType": "Point",
"defaultImportanceLevel": 2,
"controlRooms": [
"CONTROL_ROOM_ID"
]
})
headers = {
'X-Authorization': 'API_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
POST api.skyledge.com/event-types
{
"name":"Potion Ineffective",
"title":"Potion ineffective on customer in {{location}}",
"description":"A customer in {{location}} has consumed the potion with no effect",
"locationType":"Point",
"defaultImportanceLevel":2,
"controlRooms":[
"{controlRoomId}"
]
}
curl --location --request POST 'https://api.skyledge.com/event-types' \
--header 'X-Authorization: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"Potion Ineffective",
"title":"Potion ineffective on customer in {{location}}",
"description":"A customer in {{location}} has consumed the potion with no effect",
"locationType":"Point",
"defaultImportanceLevel":2,
"controlRooms":[
"CONTROL_ROOM_ID"
]
}'import { Configuration, EventTypeRequest, EventTypesApi } from '@skyledge/sdk';
const configuration = new Configuration({
apiKey: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX',
basePath: 'https://api.skyledge.com',
});
const controlRoomId = CONTROL_ROOM_ID;
const location = LOCATION;
const data: Partial<EventTypeRequest> = {
name: 'Potion Ineffective',
title: `Potion ineffective on customer in {{${location}}}`,
description: `A customer in {{${location}}} has consumed the potion with no effect`,
locationType: 'Point',
defaultImportanceLevel: 2,
controlRooms: [controlRoomId],
};
const eventTypeApi = new EventTypesApi(configuration);
const newEventType = await eventTypeApi.createAnEventType(data);
console.log(newEventType.status);import requests
import json
url = "https://api.skyledge.com/event-types"
payload = json.dumps({
"name":"Potion Ineffective",
"title":"Potion ineffective on customer in {{location}}",
"description":"A customer in {{location}} has consumed the potion with no effect",
"locationType":"Point",
"defaultImportanceLevel":2,
"controlRooms": [
"CONTROL_ROOM_ID"
]
})
headers = {
'X-Authorization': 'API_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)