# revokeTeamInvite

Revoke a team invitation by id: the one this chat created, else match it in listTeamInvites. The permanent link only when named. The link stops working (isAlive false). Own organization only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "revokeTeamInvite", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `invitationId`: `ID!` (required)

## Response (data, an example)

```json
{
  "organizationMutation": {
    "revokeInvitation": {
      "id": "<ID>",
      "isAlive": true
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "revokeTeamInvite",
    "variables": {
      "invitationId": "<invitationId>"
    }
  }'
```
