---
title: "Accept or decline an invitation"
method: PUT
path: "/invitations/{invitationId}"
tags: ["Invitation"]
---

# Accept or decline an invitation

`PUT /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.

## Path parameters

- `invitationId` string, required

## Request body

- object
  - `accept` boolean, required

## Response `200`

Ok

- boolean

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/98174db0934c/schema)
