# Mark Content as Read

Use the `markContentAsReadOrUnread`mutation to toggle the read status for a content library element.

### Arguments

| Argument | Type                            | Description                                                                               |
| -------- | ------------------------------- | ----------------------------------------------------------------------------------------- |
| `Input`  | MarkContentAsReadOrUnreadInput! | Object that contains the Id of the content library element and the read status to be set. |

### Example

{% tabs %}
{% tab title="Request" %}

```graphql
mutation($input: MarkContentAsReadOrUnreadInput!){
    markContentAsReadOrUnread(input: $input) {
        success message errors {field messages}
    }
}
variables = {
    "input": {
        "contentLibraryId": "Q29udGVudExpYnJhcnk6MjBmZGY0NWMtMTY5Zi00MmYwLThkMjktNmRlNzcwOGJjMDkz",
        "markAsRead": True,
    }
}
```

{% endtab %}
{% endtabs %}

### Example 2

{% tabs %}
{% tab title="Request" %}

```graphql
mutation{
  markContentAsReadOrUnread (input:{markAsRead: true contentLibraryId: "Q29udGVudExpYnJhcnk6MDkxZjdiMWQtZjE0YS00ZDcyLTgyZGItMDA2ODE2ZTQ5YjFm" }){
    success
    message
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "markContentAsReadOrUnread": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}
