# Mark notifications as read

From **GitHub v3 REST API**.

`PUT /notifications`

Marks all notifications as "read" removes it from the [default view on GitHub Enterprise Server](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub Enterprise Server will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/enterprise-server@3.0/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.

## Request body

- Required: false
### `application/json`

- Type: `object`

```json
{"properties":{"last_read_at":{"description":"Describes the last point that notifications were checked.","format":"date-time","type":"string"},"read":{"description":"Whether the notification has been read.","type":"boolean"}},"type":"object"}
```

## Responses

### `202`

Response

### `application/json`

- Type: `object`

```json
{"properties":{"message":{"type":"string"}},"type":"object"}
```

### `205`

Reset Content

### `304`

Not modified

### `401`

Requires authentication

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

### `403`

Forbidden

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/notifications \
  --header 'content-type: application/json' \
  --data '{
  "last_read_at": "string",
  "read": true
}'
```
