---
title: create-an-access-group-project
product: vercel
url: /docs/rest-api/access-groups/create-an-access-group-project
type: reference
prerequisites:
  []
related:
  - /docs/rest-api
summary: Learn about create-an-access-group-project on Vercel.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# Create an access group project

```http
POST /v1/access-groups/{accessGroupIdOrName}/projects
```

Allows creation of an access group project

## Authentication

**bearerToken**: HTTP bearer

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `accessGroupIdOrName` | string | Yes |  |


## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `teamId` | string | No | The Team identifier to perform the request on behalf of. |
| `slug` | string | No | The Team slug to perform the request on behalf of. |


## Request body

Required: Yes

Content-Type: `application/json`

```json
{
  "type": "object",
  "required": [
    "role",
    "projectId"
  ],
  "properties": {
    "projectId": {
      "type": "string",
      "description": "The ID of the project.",
      "maxLength": 256
    },
    "role": {
      "type": "string",
      "description": "The project role that will be added to this Access Group.",
      "enum": [
        "ADMIN",
        "PROJECT_VIEWER",
        "PROJECT_DEVELOPER"
      ]
    }
  }
}
```

## Responses

### 200: No description

Content-Type: `application/json`

```json
{
  "type": "object",
  "required": [
    "accessGroupId",
    "createdAt",
    "projectId",
    "role",
    "teamId",
    "updatedAt"
  ],
  "properties": {
    "teamId": {
      "type": "string"
    },
    "accessGroupId": {
      "type": "string"
    },
    "projectId": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "ADMIN",
        "PROJECT_DEVELOPER",
        "PROJECT_VIEWER",
        "PROJECT_GUEST"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  }
}
```

### 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.

---

## Related

- [access-groups endpoints](/docs/rest-api#access-groups)

- [REST API overview](/docs/rest-api)

- [OpenAPI spec](https://openapi.vercel.sh/) (machine-readable, all endpoints)

---

[View full sitemap](/docs/sitemap)
