---
title: "Change a pending invite's role"
method: PATCH
path: "/v1/org/{org_id}/invites/{email}"
tags: ["Invites"]
---

# Change a pending invite's role

`PATCH /v1/org/{org_id}/invites/{email}`

Changes the role the invitee will hold. Only a pending invite can be changed; use the organization's member management to change the role of someone who has already accepted.

## Request body

- UpdateInviteRole
  - `role` 'user' | 'admin' | 'support' | 'cloud_rep' | 'restricted_user', required — New role for the pending invite

## Response `200`

OK

- PublicInvite
  - `org_id` string, required — Organization the invite belongs to
  - `email` string, required — Address the invite was sent to, and its identifier in this API
  - `role` 'user' | 'admin' | 'support' | 'cloud_rep' | 'restricted_user', required — Role the invitee holds in the organization
  - `status` 'invited' | 'accepted' | 'rejected' | 'revoked', required — 'invited' is pending; 'accepted', 'rejected' and 'revoked' are final
  - `invited_by` string, nullable, required — Email of the user who sent the invite
  - `created_at` string, date-time, required — When the invite was first created

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `405` — Method not allowed
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal server error
- `default` — Default error response

## Changes

- **2026-08-28** `3a24a8454a72` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/archera/apis/archera-ai-api/changes/v1/org/:org_id/invites/:email/patch.md)

---

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