Push
Mutation
deletePushDevice — Returns PushDevice
Scopes Required: manage_push_devices
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the push device to delete |
Example Mutation
mutation DeletePushDevice($id: ID!) {
deletePushDevice(id: $id) {
id,
name,
endpoint,
notifications
}
}
# Example variables
{
"id": "<ID>"
}Mutation
registerPushDevice — Returns PushDevice
Scopes Required: manage_push_devices
| Arguments | Type | Description |
|---|---|---|
|
name |
String! |
The name of the push device |
|
subscription |
String! |
The subscription details, please contact us for more details on how this is formatted |
Example Mutation
mutation RegisterPushDevice($name: String!, $subscription: String!) {
registerPushDevice(name: $name, subscription: $subscription) {
id,
name,
endpoint,
notifications
}
}
# Example variables
{
"name": "<NAME>",
"subscription": "<SUBSCRIPTION>"
}Mutation
updatePushDevice — Returns PushDevice
Scopes Required: manage_push_devices
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the push device |
|
|
name |
String |
The name of the push device |
|
notifications |
String! |
The notifications to receive on this push device |
Example Mutation
mutation UpdatePushDevice($id: ID!, $notifications: String!) {
updatePushDevice(id: $id, notifications: $notifications) {
id,
name,
endpoint,
notifications
}
}
# Example variables
{
"id": "<ID>",
"notifications": "<NOTIFICATIONS>"
}