# deleteAccountInvitation

```graphql
mutation DeleteAccountInvitation($accountId: ID!, $invitationId: ID!) {
  deleteAccountInvitation(accountId: $accountId, invitationId: $invitationId) {
    ok
  }
}
```

Delete account invitation. Requires account.invitations.manage; API keys also need delete scope.

## Arguments

| Name           | Type | Required | Description                                                                                                                                   |
| -------------- | ---- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `accountId`    | ID!  | Yes      |                                                                                                                                               |
| `invitationId` | ID!  | Yes      | Invitation to revoke. Expired or already revoked invitations succeed. Accepted invitations return 409; remove the account membership instead. |

## Variables

```json
{
  "accountId": "string",
  "invitationId": "string"
}
```

## Responses

| Status | Description                                          |
| ------ | ---------------------------------------------------- |
| 200    | The DeletionResult! in data.deleteAccountInvitation. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteAccountInvitation($accountId: ID!, $invitationId: ID!) {\n  deleteAccountInvitation(accountId: $accountId, invitationId: $invitationId) {\n    ok\n  }\n}",
  "variables": {
    "accountId": "string",
    "invitationId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteAccountInvitation": {
      "ok": false
    }
  }
}
```
