# Mutations / Push

# Push

**Mutation**
## deletePushDevice — Returns [PushDevice](/documentation/Objects/Push-Device#PushDevice)

**Scopes required:** manage_push_devices

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the push device to delete |

**Example Mutation**

```graphql
mutation DeletePushDevice($id: ID!) {
    deletePushDevice(id: $id) {
        id,
        name,
        endpoint,
        notifications
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Mutation**
## registerPushDevice — Returns [PushDevice](/documentation/Objects/Push-Device#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**

```graphql
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](/documentation/Objects/Push-Device#PushDevice)

**Scopes required:** manage_push_devices

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | 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**

```graphql
mutation UpdatePushDevice($id: ID!, $notifications: String!) {
    updatePushDevice(id: $id, notifications: $notifications) {
        id,
        name,
        endpoint,
        notifications
    }
}

# Example variables
{
    "id": "<ID>",
    "notifications": "<NOTIFICATIONS>"
}
```