---
title: "Create a group. Roles: admin."
method: POST
path: "/api/groups"
tags: ["Groups"]
---

# Create a group. Roles: admin.

`POST /api/groups`

## Request body

- GroupCreateRequest
  - `name` string, required
  - `nodeActive` boolean, required
  - `properties` GroupProperties
    - `chatEnabled` boolean
    - `postsEnabled` boolean
  - `externalReferenceId` string
  - `membershipId` integer
  - `groupTypeId` integer, required
  - `parentGroupId` integer

## Response `200`

OK

- GroupResponseGroupFull
  - `success` boolean
  - `error` string
  - `group` GroupFull
    - `audit` Audit
      - `createdTime` string, date-time
      - `modifiedTime` string, date-time
      - `modifiedBy` string
    - `groupId` integer
    - `groupType` GroupTypeCore
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `groupTypeId` integer
      - `membershipId` integer
      - `name` string
      - `namePlural` string
      - `description` string
      - `properties` GroupTypeProperties
        - `announcementsHtml` string
        - `chatEnabled` boolean
        - `chatDefaultEnabled` boolean
        - `contactSharingDefaultEnabled` boolean
        - `postsEnabled` boolean
        - `postsDefaultEnabled` boolean
      - `root` boolean
      - `external` boolean
      - `isPrivate` boolean
    - `membershipId` integer
    - `name` string
    - `properties` GroupProperties
      - `chatEnabled` boolean
      - `postsEnabled` boolean
    - `nodeActive` boolean
    - `ancestryActive` boolean
    - `active` boolean
    - `root` boolean
    - `external` boolean
    - `externalReferenceId` string
    - `parentGroup` GroupFull — recursive

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/mobilecoach/apis/untitled-api.md) · [All operations](https://skmtc.dev/mobilecoach/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobilecoach/untitled-api/revisions/f2568e11c0ab/schema)
