# com.getorbyt.send.putPreferences

> Changes the viewer's Sends preferences; a field left out keeps its value. Turning receipts off also hides what the viewer already watched, and nothing watched while they are off is recorded.

- Kind: procedure
- Authority: send.getorbyt.com
- Lexicon: 1
- Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.putPreferences)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.putPreferences/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.putPreferences/analytics)

## Procedure (`com.getorbyt.send.putPreferences`)

Type: procedure · POST

### Input (application/json)

- `allowFrom` (string)
  - Constraints: maxLength: 32
- `receipts` (boolean)

### Output (application/json)

- `schema` (ref)
  - Reference: `com.getorbyt.send.defs#preferencesView`

### Errors

- `AuthenticationRequired`: No description in schema.
- `InvalidRequest`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Changes the viewer's Sends preferences; a field left out keeps its value. Turning receipts off also hides what the viewer already watched, and nothing watched while they are off is recorded.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "allowFrom": {
              "maxLength": 32,
              "type": "string"
            },
            "receipts": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "com.getorbyt.send.defs#preferencesView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.send.putPreferences",
  "lexicon": 1
}
```
