# social.grain.actor.putPreferences

> Set the viewer's grain preferences, replacing all of them, as app.bsky.actor.putPreferences does. Requires auth.

- Kind: procedure
- Authority: actor.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.putPreferences)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.putPreferences/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.putPreferences/analytics)

## Procedure (`social.grain.actor.putPreferences`)

Type: procedure · POST

### Input (application/json)

- `preferences` (ref, required)
  - Reference: `social.grain.actor.defs#preferences`

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Set the viewer's grain preferences, replacing all of them, as app.bsky.actor.putPreferences does. Requires auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "preferences": {
              "ref": "social.grain.actor.defs#preferences",
              "type": "ref"
            }
          },
          "required": [
            "preferences"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.actor.putPreferences",
  "lexicon": 1
}
```
