# party.whey.writeproxy.admin.approveRegistration

> Approve a delegator or caller registration.

- 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.approveRegistration)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.approveRegistration/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.approveRegistration/analytics)

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

Type: procedure · POST

### Input (application/json)

- `did` (string · did, required)
- `reason` (string)
  - Constraints: maxLength: 256
- `role` (string, required)
  - Constraints: enum: delegator | caller

### Output (application/json)

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

### Errors

- `NotOperator`: No description in schema.
- `RegistrationNotFound`: No description in schema.
- `Conflict`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "RegistrationNotFound"
        },
        {
          "name": "Conflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "reason": {
              "maxLength": 256,
              "type": "string"
            },
            "role": {
              "enum": [
                "delegator",
                "caller"
              ],
              "type": "string"
            }
          },
          "required": [
            "did",
            "role"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "registration": {
              "ref": "party.whey.writeproxy.defs#registration",
              "type": "ref"
            }
          },
          "required": [
            "registration"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Approve a delegator or caller registration.",
  "id": "party.whey.writeproxy.admin.approveRegistration",
  "lexicon": 1
}
```
