# party.whey.writeproxy.admin.addBlocklist

> Add a blocklist entry. Requires a reason for abuse accountability.

- Kind: procedure
- Authority: admin.writeproxy.whey.party
- Lexicon: 1
- Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.addBlocklist)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.addBlocklist/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.addBlocklist/analytics)

## Procedure (`party.whey.writeproxy.admin.addBlocklist`)

Type: procedure · POST

### Input (application/json)

- `expiresAt` (string · datetime)
- `kind` (string, required)
  - Constraints: enum: did | pds | ip | cidr | asn | domain | nsid
- `reason` (string, required)
  - Constraints: maxLength: 256
- `value` (string, required)
  - Constraints: maxLength: 512

### Output (application/json)

- `entry` (ref, required)
  - Reference: `party.whey.writeproxy.defs#blocklistEntry`

### Errors

- `NotOperator`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "kind": {
              "enum": [
                "did",
                "pds",
                "ip",
                "cidr",
                "asn",
                "domain",
                "nsid"
              ],
              "type": "string"
            },
            "reason": {
              "maxLength": 256,
              "type": "string"
            },
            "value": {
              "maxLength": 512,
              "type": "string"
            }
          },
          "required": [
            "kind",
            "value",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "entry": {
              "ref": "party.whey.writeproxy.defs#blocklistEntry",
              "type": "ref"
            }
          },
          "required": [
            "entry"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Add a blocklist entry. Requires a reason for abuse accountability.",
  "id": "party.whey.writeproxy.admin.addBlocklist",
  "lexicon": 1
}
```
