{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Create or update one of the authenticated user's equalizer presets. The record key is derived from the name (lower case, dashes, no spaces), so saving with an existing name overwrites that preset.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "bands": {
              "description": "Up to 10 EQ bands",
              "items": {
                "ref": "app.rocksky.rockbox.defs#equalizerBand",
                "type": "ref"
              },
              "type": "array"
            },
            "name": {
              "description": "Display name of the preset.",
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "precut": {
              "description": "Pre-amplification cut in tenths of dB applied before EQ bands (e.g. -60 = -6.0 dB)",
              "maximum": 0,
              "minimum": -240,
              "type": "integer"
            }
          },
          "required": [
            "name",
            "bands"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "app.rocksky.equalizer.defs#presetView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.rocksky.equalizer.putPreset",
  "lexicon": 1
}
