# Mutations / Notifications

# Notifications

**Mutation**
## createNotification — Returns [Notification](/documentation/Objects/Notification#Notification)

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

> <p>This is currently an experimental mutation, please get in contact with us before using it.</p>

| Arguments | Type | Description |
| --- | --- | --- |
| notifiable | [NotifiableInput!](/documentation/Inputs/Notifiable-Input#NotifiableInput) |  |
| image | *String* | The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. |
| title | *String!* | The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. |
| message | *String* | The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. |
| action | [NotificationActionTypeEnum](/documentation/Enums/Notification-Action-Type-Enum#NotificationActionTypeEnum) |  |
| address | *String* | The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. |

**Example Mutation**

```graphql
mutation CreateNotification {
    createNotification {
        id,
        data,
        readAt,
        createdAt,
        updatedAt
    }
}
```

**Mutation**
## deleteAllNotifications — Returns *boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Delete all the read notifications

| Arguments | Type | Description |
| --- | --- | --- |
| register | [ID](/documentation/Types/UUID#UUID) | The register to delete the notifications from |
| outlet | [ID](/documentation/Types/UUID#UUID) | The outlet to delete the notifications from |

**Example Mutation**

```graphql
mutation DeleteAllNotifications($register: ID) {
    deleteAllNotifications(register: $register)
}

# Example variables
{
    "register": "<REGISTER>"
}
```

**Mutation**
## deleteNotification — Returns *boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Delete a notification

| Arguments | Type | Description |
| --- | --- | --- |
| id | *String!* | The id of the notification to delete |

**Example Mutation**

```graphql
mutation DeleteNotification($id: String!) {
    deleteNotification(id: $id)
}

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

**Mutation**
## readAllNotifications — Returns *boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Mark all notification as read

| Arguments | Type | Description |
| --- | --- | --- |
| register | [ID](/documentation/Types/UUID#UUID) | The register for which to mark the notifications as read |
| outlet | [ID](/documentation/Types/UUID#UUID) | The outlet for which to mark the notifications as read |

**Example Mutation**

```graphql
mutation ReadAllNotifications($register: ID) {
    readAllNotifications(register: $register)
}

# Example variables
{
    "register": "<REGISTER>"
}
```

**Mutation**
## readNotification — Returns *boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Mark a notification as read

| Arguments | Type | Description |
| --- | --- | --- |
| id | *String!* | The id of the notification to mark as read |

**Example Mutation**

```graphql
mutation ReadNotification($id: String!) {
    readNotification(id: $id)
}

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