---
title: "Update an access group project"
method: PATCH
path: "/v1/access-groups/{accessGroupIdOrName}/projects/{projectId}"
tags: ["access-groups"]
---

# Update an access group project

`PATCH /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/access-groups/{accessGroupIdOrName}/projects/{projectId}`
- Auth: HTTP bearer

Allows update of an access group project

## Path parameters

- `accessGroupIdOrName` string, required
- `projectId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `role` string, required: The project role that will be added to this Access Group.

## Response `200`

- object
  - `accessGroupId` string, required
  - `createdAt` string, required
  - `projectId` string, required
  - `role` 'ADMIN' | 'PROJECT_DEVELOPER' | 'PROJECT_GUEST' | 'PROJECT_VIEWER', required
  - `teamId` string, required
  - `updatedAt` string, required

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-09-30** `099fbe1f521c`: 1 info
  - added the non-success response with the status `404`
- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-02-02** `5264f094c3d3`: 1 warning, 1 info
  - added the new `PROJECT_GUEST` enum value to the `role` response property for the response status `200`
  - added the new `undefined` enum value to the request property `role`
- **2026-01-22** `c12186034433`: 1 breaking
  - request body became required
- **2025-10-09** `50caddad4ae7`: 1 info
  - removed the non-success response with the status `404`

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/access-groups/:accessGroupIdOrName/projects/:projectId/patch.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
