# com.getorbyt.video.setMixTuning

> Tunes Your Mix for an author or Channel without naming a post, from the viewer's tuning screen (com.getorbyt.video.listMixTuning): more or less, as com.getorbyt.video.tuneMix does, replacing any earlier signal. It lasts 30 days, or until `expiresAt` when that is sooner, which is how the app's Undo puts back what was there. Or, with `items`, puts back each change that com.getorbyt.video.clearMixTuning returned as cleared, as it was, which is how Undo after Reset restores everything Reset took away.

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

## Links

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

## Procedure (`com.getorbyt.video.setMixTuning`)

Type: procedure · POST

### Input (application/json)

- `expiresAt` (string · datetime)
- `items` (array): Changes to put back, each until its own end. Sent instead of `subject` and `signal`.
  - Constraints: maxLength: 1000
  - `items` (ref)
    - Reference: `#tuning`
- `signal` (string)
  - Constraints: knownValues: more | less
- `subject` (string): An author's DID or a Channel's AT URI. Required with `signal` unless `items` is sent.

### Output (application/json)


### Errors

- `AuthenticationRequired`: No description in schema.
- `InvalidRequest`: No description in schema.
- `MethodNotImplemented`: Mix tuning is not live for this account.

## #tuning (`com.getorbyt.video.setMixTuning#tuning`)

Type: object

One author or Channel the viewer tuned, and until when.

### Properties

- `expiresAt` (string · datetime, required)
- `signal` (string, required)
  - Constraints: knownValues: more | less
- `subject` (string, required): An author's DID or a Channel's AT URI.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Tunes Your Mix for an author or Channel without naming a post, from the viewer's tuning screen (com.getorbyt.video.listMixTuning): more or less, as com.getorbyt.video.tuneMix does, replacing any earlier signal. It lasts 30 days, or until `expiresAt` when that is sooner, which is how the app's Undo puts back what was there. Or, with `items`, puts back each change that com.getorbyt.video.clearMixTuning returned as cleared, as it was, which is how Undo after Reset restores everything Reset took away.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "description": "Mix tuning is not live for this account.",
          "name": "MethodNotImplemented"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "items": {
              "description": "Changes to put back, each until its own end. Sent instead of `subject` and `signal`.",
              "items": {
                "ref": "#tuning",
                "type": "ref"
              },
              "maxLength": 1000,
              "type": "array"
            },
            "signal": {
              "knownValues": [
                "more",
                "less"
              ],
              "type": "string"
            },
            "subject": {
              "description": "An author's DID or a Channel's AT URI. Required with `signal` unless `items` is sent.",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "tuning": {
      "description": "One author or Channel the viewer tuned, and until when.",
      "properties": {
        "expiresAt": {
          "format": "datetime",
          "type": "string"
        },
        "signal": {
          "knownValues": [
            "more",
            "less"
          ],
          "type": "string"
        },
        "subject": {
          "description": "An author's DID or a Channel's AT URI.",
          "type": "string"
        }
      },
      "required": [
        "subject",
        "signal",
        "expiresAt"
      ],
      "type": "object"
    }
  },
  "id": "com.getorbyt.video.setMixTuning",
  "lexicon": 1
}
```
