# net.olamaelcu.livtet.biblio.setMute

> Mute or unmute one book, contributor or person for the caller. Authenticated with an atproto service JWT minted by the caller's own PDS (`aud` this AppView's `did:web`, `lxm` this NSID); the issuer is the only viewer whose rows the call can touch. Idempotent: sending the same `muted` value twice leaves the same state.

- Kind: procedure
- Authority: biblio.livtet.olamaelcu.net
- Lexicon: 1
- Published by [biblio.livtet.olamaelcu.net](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.setMute)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.setMute/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.setMute/analytics)

## Procedure (`net.olamaelcu.livtet.biblio.setMute`)

Type: procedure · POST

### Input (application/json)

- `muted` (boolean, required): The desired state. `true` upserts the row; `false` deletes it.
- `subject` (string, required): The muted resource. For `book` and `contributor`, an at-uri in that collection; for `person`, a DID.
  - Constraints: minLength: 1
- `subjectType` (string, required): How `subject` is interpreted and how the feed hides it.
  - Constraints: knownValues: book | contributor | person

### Output (application/json)

- `muted` (boolean, required): The state now stored for the caller.

### Errors

- `AuthRequired`: No service JWT, or one that does not verify.
- `InvalidRequest`: The body is not `{ subject, subjectType, muted }`, or the subject does not match its type.
- `ServiceUnavailable`: The mute store could not be reached.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "No service JWT, or one that does not verify.",
          "name": "AuthRequired"
        },
        {
          "description": "The body is not `{ subject, subjectType, muted }`, or the subject does not match its type.",
          "name": "InvalidRequest"
        },
        {
          "description": "The mute store could not be reached.",
          "name": "ServiceUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "muted": {
              "description": "The desired state. `true` upserts the row; `false` deletes it.",
              "type": "boolean"
            },
            "subject": {
              "description": "The muted resource. For `book` and `contributor`, an at-uri in that collection; for `person`, a DID.",
              "minLength": 1,
              "type": "string"
            },
            "subjectType": {
              "description": "How `subject` is interpreted and how the feed hides it.",
              "knownValues": [
                "book",
                "contributor",
                "person"
              ],
              "type": "string"
            }
          },
          "required": [
            "subject",
            "subjectType",
            "muted"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "muted": {
              "description": "The state now stored for the caller.",
              "type": "boolean"
            }
          },
          "required": [
            "muted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Mute or unmute one book, contributor or person for the caller. Authenticated with an atproto service JWT minted by the caller's own PDS (`aud` this AppView's `did:web`, `lxm` this NSID); the issuer is the only viewer whose rows the call can touch. Idempotent: sending the same `muted` value twice leaves the same state.",
  "id": "net.olamaelcu.livtet.biblio.setMute",
  "lexicon": 1
}
```
