# social.coves.notification.putPreferences

> Update the authenticated account's notification preferences.

- Kind: procedure
- Authority: notification.coves.social
- Lexicon: 1
- Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.notification.putPreferences)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.notification.putPreferences/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.notification.putPreferences/analytics)

## Procedure (`social.coves.notification.putPreferences`)

Type: procedure · POST

### Input (application/json)

- `commentReply` (boolean): Enable or disable replies to your comments.
- `mention` (boolean): Enable or disable mentions.
- `postReply` (boolean): Enable or disable replies to your posts.
- `upvote` (boolean): Enable or disable upvote group notifications.

### Output (application/json)

- `schema` (ref)
  - Reference: `social.coves.notification.defs#preferences`

### Errors

- `AccountNotIndexed`: The authenticated account has not been indexed by this AppView yet, so its preferences cannot be stored.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update the authenticated account's notification preferences.",
      "errors": [
        {
          "description": "The authenticated account has not been indexed by this AppView yet, so its preferences cannot be stored.",
          "name": "AccountNotIndexed"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "commentReply": {
              "description": "Enable or disable replies to your comments.",
              "type": "boolean"
            },
            "mention": {
              "description": "Enable or disable mentions.",
              "type": "boolean"
            },
            "postReply": {
              "description": "Enable or disable replies to your posts.",
              "type": "boolean"
            },
            "upvote": {
              "description": "Enable or disable upvote group notifications.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "social.coves.notification.defs#preferences",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.coves.notification.putPreferences",
  "lexicon": 1
}
```
