# org.atgrp.denyJoinRequest

Deny a pending join request, deleting it. To approve one, write the requester's membership instead. Requires auth as the group.

A method (procedure) in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-denyJoinRequest/

- Named in the spec: 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets); 13.4 Methods (https://www.atmospheregroups.org/spec/#methods)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/denyJoinRequest.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-denyJoinRequest/, the same schema
- The reference host's version: fyi.opensocial.denyJoinRequest, https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-denyJoinRequest/

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.denyJoinRequest",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Deny a pending join request, deleting it. To approve one, write the requester's membership instead. Requires auth as the group.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "member"
          ],
          "properties": {
            "member": {
              "type": "string",
              "format": "did"
            }
          }
        }
      },
      "errors": [
        {
          "name": "JoinRequestNotFound"
        }
      ]
    }
  }
}
```
