# social.graze.midterms.putPreferences

> Published by [lexicons.graze.social](https://lexicon.garden/identity/did:plc:nxlxk7yrghbz4bqail664q3x)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:nxlxk7yrghbz4bqail664q3x/social.graze.midterms.putPreferences)
- [Documentation](https://lexicon.garden/lexicon/did:plc:nxlxk7yrghbz4bqail664q3x/social.graze.midterms.putPreferences/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:nxlxk7yrghbz4bqail664q3x/social.graze.midterms.putPreferences/examples)

## Definitions

### `social.graze.midterms.putPreferences`

**Type**: `procedure`

Replace the authenticated account's preferences for the Graze 2026 midterms feeds. Returns the preference as stored. Requires service auth: aud did:web:midterms.graze.social, lxm this NSID.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `array` | Yes | The reader's chosen feeds, unique. States take turns in the order given; 'national', if included, takes its turn after them. ['national'] alone leaves the feed unchanged. Replaces any stored value. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `array` | Yes | The reader's chosen feeds, unique: state codes in the order they take turns, then 'national' if it is included. Empty when nothing that changes the feed is stored. |

#### Errors

- **InvalidContent**: A value is not a known feed, or appears more than once.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Replace the authenticated account's preferences for the Graze 2026 midterms feeds. Returns the preference as stored. Requires service auth: aud did:web:midterms.graze.social, lxm this NSID.",
      "errors": [
        {
          "description": "A value is not a known feed, or appears more than once.",
          "name": "InvalidContent"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "content": {
              "description": "The reader's chosen feeds, unique. States take turns in the order given; 'national', if included, takes its turn after them. ['national'] alone leaves the feed unchanged. Replaces any stored value.",
              "items": {
                "description": "'national' (races-natl) or a lowercase two-letter state code for a published race feed, e.g. 'ga' (races-ga).",
                "knownValues": [
                  "national",
                  "ak",
                  "al",
                  "ar",
                  "az",
                  "ca",
                  "co",
                  "ct",
                  "dc",
                  "de",
                  "fl",
                  "ga",
                  "hi",
                  "ia",
                  "id",
                  "il",
                  "in",
                  "ks",
                  "ky",
                  "la",
                  "ma",
                  "md",
                  "me",
                  "mi",
                  "mn",
                  "mo",
                  "ms",
                  "mt",
                  "nc",
                  "nd",
                  "ne",
                  "nh",
                  "nj",
                  "nm",
                  "nv",
                  "ny",
                  "oh",
                  "ok",
                  "or",
                  "pa",
                  "ri",
                  "sc",
                  "sd",
                  "tn",
                  "tx",
                  "ut",
                  "va",
                  "vt",
                  "wa",
                  "wi",
                  "wv",
                  "wy"
                ],
                "maxLength": 8,
                "type": "string"
              },
              "maxLength": 53,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "content"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "content": {
              "description": "The reader's chosen feeds, unique: state codes in the order they take turns, then 'national' if it is included. Empty when nothing that changes the feed is stored.",
              "items": {
                "description": "'national' (races-natl) or a lowercase two-letter state code for a published race feed, e.g. 'ga' (races-ga).",
                "knownValues": [
                  "national",
                  "ak",
                  "al",
                  "ar",
                  "az",
                  "ca",
                  "co",
                  "ct",
                  "dc",
                  "de",
                  "fl",
                  "ga",
                  "hi",
                  "ia",
                  "id",
                  "il",
                  "in",
                  "ks",
                  "ky",
                  "la",
                  "ma",
                  "md",
                  "me",
                  "mi",
                  "mn",
                  "mo",
                  "ms",
                  "mt",
                  "nc",
                  "nd",
                  "ne",
                  "nh",
                  "nj",
                  "nm",
                  "nv",
                  "ny",
                  "oh",
                  "ok",
                  "or",
                  "pa",
                  "ri",
                  "sc",
                  "sd",
                  "tn",
                  "tx",
                  "ut",
                  "va",
                  "vt",
                  "wa",
                  "wi",
                  "wv",
                  "wy"
                ],
                "maxLength": 8,
                "type": "string"
              },
              "maxLength": 53,
              "type": "array"
            }
          },
          "required": [
            "content"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.graze.midterms.putPreferences",
  "lexicon": 1
}
```
