> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a group

> Create a group to manage access for several people.

API referenceApplies to: Workspaces with access management

`POST /api/v1/groups`

Create a group to manage access for several people.

## Access

If you use a machine client, request the `query_engine.permissions:manage` scope. The caller also needs permission to manage groups. This group API is in beta.

Responses include `X-E6-API-Stability: beta`.

[Choose the right workspace credential](https://docs.e6data.com/api-reference/authentication.md). Ask your workspace administrator whether this API is available in your workspace.

## Request

JSON body: `name` is required. Optional `displayName`, `description`, and `members` set the label, explanation, and initial members. Each member needs an email, user ID, or service principal name.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --proto '=https' --silent --show-error --fail-with-body \
  --request POST \
  --header @- \
  --header 'Content-Type: application/json' \
  --data '{"name":"analysts","displayName":"Analysts","members":[{"email":"ana@example.com"}]}' \
  "$WORKSPACE_URL/api/v1/groups" <<< "Authorization: Bearer $ACCESS_TOKEN"
```

## Response

HTTP `201`. Example response with sample values:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "message": "Group created successfully",
  "name": "analysts"
}
```

## If the request fails

For `401`, check the workspace URL and token. For `403`, ask your administrator to check your access. For `400`, check the group name and member identities. For `409`, read the existing group before retrying. System-managed groups cannot be edited here.

[Return to the API endpoint directory](https://docs.e6data.com/api-reference/endpoints.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.