---
title: "Update a project invite's role"
method: PATCH
path: "/api/v1/projects/{projectId}/invites/{inviteId}"
tags: ["Project Invites"]
---

# Update a project invite's role

`PATCH /api/v1/projects/{projectId}/invites/{inviteId}`

## Path parameters

- `inviteId` string, required
- `projectId` string, required

## Request body

- UpdateProjectInviteRequest

## Response `200`

Updated

- ProjectInviteResponse
  - `data` ProjectInviteDto, required
    - `id` string, required
    - `status` 'sent' | 'accepted', required
    - `email` string, required
    - `role` 'admin' | 'editor' | 'viewer', required

## Other responses

- `400` — Bad request params or attempting to edit own role
- `401` — Unauthorized
- `404` — Not found

## Changes

- **2019-09-22** (v1) `80f839caee99` — 1 info
  - endpoint added
- **2019-08-04** (v1) `7b3aa158dba5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ever-co/apis/ever-traduora-api/changes/api/v1/projects/:projectId/invites/:inviteId/patch.md)

---

[API](https://skmtc.dev/ever-co/apis/ever-traduora-api.md) · [All operations](https://skmtc.dev/ever-co/apis/ever-traduora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ever-co/ever-traduora-api/revisions/50176ec21566/schema)
