> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept or decline an invitation

> 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.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /invitations/{invitationId}
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /invitations/{invitationId}:
    put:
      tags:
        - Invitation
      summary: Accept or decline an invitation
      description: >-
        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.
      operationId: UpdateInvitation
      parameters:
        - in: path
          name: invitationId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                accept:
                  type: boolean
              required:
                - accept
              type: object
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                type: boolean
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````