---
title: "Creates a new group. Restricted to admins only"
method: POST
path: "/workspaces/{workspace_domain}/groups"
tags: ["Group API"]
---

# Creates a new group. Restricted to admins only

`POST /workspaces/{workspace_domain}/groups`

## Path parameters

- `workspace_domain` string, required

## Request body

- AddGroupRequest
  - `name` string, required — The name of the group
  - `auto_assign_to_new_projects` boolean — Whether to automatically assign group members to new projects
  - `allow_add_new_projects` boolean — Whether group members are allowed to add new projects
  - `allow_add_new_domains_on_owner_behalf` boolean — Whether group members are allowed to buy new domains on behalf of the workspace owner
  - `auto_assign_permission_set_id` integer — The ID of the permission set to automatically assign to new project members
  - `note` string — Note for this resource
  - `agent_note` string — YAML note for AI agents operating on this resource

## Response `200`

- GroupView
  - `url` string — API endpoint to GET this object
  - `html_url` string — Web URL to view this object in Buddy.works
  - `id` integer — The ID of the group
  - `name` string — The name of the group
  - `auto_assign_to_new_projects` boolean — Whether to automatically assign group members to new projects
  - `allow_add_new_projects` boolean — Whether group members are allowed to add new projects
  - `allow_add_new_domains_on_owner_behalf` boolean — Whether group members are allowed to buy new domains on behalf of the workspace owner
  - `auto_assign_permission_set_id` integer — The ID of the permission set to automatically assign to new project members
  - `note` string — Note for this resource
  - `agent_note` string — YAML note for AI agents operating on this resource

---

[API](https://skmtc.net/buddy/apis/buddy-api.md) · [All operations](https://skmtc.net/buddy/apis/buddy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/buddy/buddy-api/versions/2426d67c249a/schema)
