Security
Mutation
createSecurityEvent — Returns SecurityEvent
No scope required
| Arguments | Type | Description |
|---|---|---|
|
outlet |
The outlet the security event occurred in |
|
|
register |
The register the security event occurred on |
|
|
user |
The user who caused the event, if not specified it defaults to the current user |
|
|
event |
The event that occurred, if specifying your own event, use the CUSTOM_EVENT type |
|
|
customEvent |
String |
The custom event that occurred, only specify when using the CUSTOM_EVENT type |
|
metaData |
Any internal data relating to the event |
|
|
ipv4 |
The IPv4 Address this event originated from, if not specified it will use the current request's IPv4 address |
|
|
ipv6 |
The IPv6 Address this event originated from, if not specified this will use the current request's IPv6 address |
|
|
timestamp |
The timestamp this event occurred, if not specified it will use the current timestamp |
Example Mutation
mutation CreateSecurityEvent($event: SecurityEventEnum!) {
createSecurityEvent(event: $event) {
id,
deviceId,
event,
metaData,
ipv4
}
}
# Example variables
{
"event": "LOGIN"
}