---
title: "Accept or decline a specific group invitation"
method: PATCH
path: "/users/{id}/group-invitations/{group-invitation-id}"
tags: ["roles"]
---

# Accept or decline a specific group invitation

`PATCH /users/{id}/group-invitations/{group-invitation-id}`

Updates the group invitation and returns the updated definition

## Path parameters

- `id` string, required
- `group-invitation-id` string, required

## Request body

- GroupInvitationConfiguration — The configurable parts of a group invitation
  - `state` 'queued' | 'accepted' | 'sent' | 'declined' — The current state of the group invitation.

## Response `200`

The group invitation was successfully accepted or declined

- GroupInvitation — A group invitation invites a user to a particular group.
  - `state` 'queued' | 'accepted' | 'sent' | 'declined' — The current state of the group invitation.
  - `href` string — A reference to this group
  - `created` string — An iso8601 formatted timestamp
  - `sent` string — An iso8601 formatted timestamp
  - `granted_by` string — The user that sent the invitation
  - `user_email` string — An email address
  - `group` string — A reference to this group

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
