---
title: "Patches a specified invitation"
method: PATCH
path: "/accounts/{id}/invitations/{invitation_id}"
tags: ["roles"]
---

# Patches a specified invitation

`PATCH /accounts/{id}/invitations/{invitation_id}`

Updates the invitation and returns the updated definition

## Path parameters

- `id` string, required
- `invitation_id` string, required

## Request body

- RoleInvitationConfiguration — The configurable parts of a role invitation
  - `state` 'queued' | 'accepted' | 'sent' | 'declined' — A reference to this role

## Response `200`

The role was successfully updated

- RoleInvitation — The current state of a role invitation
  - `state` 'queued' | 'accepted' | 'sent' | 'declined' — A reference to this role
  - `href` string — A reference to this role
  - `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
  - `role` string — A reference to this role

---

[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)
