addNotificationSubscription
Create a notification subscription.
addNotificationSubscription(
input: AddNotificationSubscriptionInput
): AddNotificationSubscriptionPayload!
Example
- Query
- Variables
- Response
mutation ($input: AddNotificationSubscriptionInput) {
addNotificationSubscription(input: $input) {
notificationSubscription {
active
createdAt
description
entityType
entityValue
id
updatedAt
vin
}
}
}
{
"input": {
"active": true,
"description": "A description",
"entityType": "entityType",
"entityValue": "entityValue",
"meta": {
"eventTypes": [
"eventTypes"
]
},
"notificationRecipientId": "42",
"organizationId": "42",
"vin": true
}
}
{
"data": {
"addNotificationSubscription": {
"notificationSubscription": {
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"description": "A description",
"entityType": "entityType",
"entityValue": "entityValue",
"id": 42,
"updatedAt": "2024-01-15T00:00:00.000Z",
"vin": true
}
}
}
}
Arguments
addNotificationSubscription.input ● AddNotificationSubscriptionInput input common
The notification subscription to create.
Type
AddNotificationSubscriptionPayload object common
The result of creating a notification subscription.