---
title: "Accept or decline an invitation"
url: https://docs.gleap.ai/en/reference/rest-api/update-invitation
method: PUT
path: "/invitations/{invitationId}"
api: "API Reference"
tag: "Invitation"
operationId: "UpdateInvitation"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Accept or decline an invitation

`PUT https://api.gleap.io/v3/invitations/{invitationId}`

Accept or decline an invitation addressed to the authenticated user. On accept the user is added to the organisation or project with the invitation's role. The invitation is consumed (deleted) either way. Fails with 409 if the invitation was issued to a different email, the user has not confirmed their email, or the target organisation has no seats left.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `invitationId` (string, required)

## Request body (`application/json`, required)

- `accept` (boolean, required)

## Example request

```bash
curl --request PUT \
  --url 'https://api.gleap.io/v3/invitations/{invitationId}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "accept": true
}'
```

## Responses

### 200 (`application/json`)

Ok

```json
true
```
