# party.whey.writeproxy.approveCallerRequest

> Approve a caller-access request by adding the caller to the delegation's DID allowlist. Only the delegation's repo owner may call this.

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

## Procedure (`party.whey.writeproxy.approveCallerRequest`)

Type: procedure · POST

### Input (application/json)

- `delegation` (string, required)
  - Constraints: maxLength: 128
- `ifCallerRevision` (integer)
  - Constraints: minimum: 0
- `requestId` (string, required)
  - Constraints: maxLength: 128

### Output (application/json)

- `callerRevision` (integer, required)
  - Constraints: minimum: 0
- `request` (ref, required)
  - Reference: `party.whey.writeproxy.defs#callerRequest`

### Errors

- `DelegationNotFound`: No description in schema.
- `RequestNotFound`: No description in schema.
- `NotAuthorized`: No description in schema.
- `AlreadyAllowed`: No description in schema.
- `Conflict`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "DelegationNotFound"
        },
        {
          "name": "RequestNotFound"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "AlreadyAllowed"
        },
        {
          "name": "Conflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "maxLength": 128,
              "type": "string"
            },
            "ifCallerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "requestId": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "delegation",
            "requestId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "callerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "request": {
              "ref": "party.whey.writeproxy.defs#callerRequest",
              "type": "ref"
            }
          },
          "required": [
            "request",
            "callerRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Approve a caller-access request by adding the caller to the delegation's DID allowlist. Only the delegation's repo owner may call this.",
  "id": "party.whey.writeproxy.approveCallerRequest",
  "lexicon": 1
}
```
