---
title: "Create a group type and its roles. Roles: admin."
method: POST
path: "/api/groupTypes"
tags: ["Group Types"]
---

# Create a group type and its roles. Roles: admin.

`POST /api/groupTypes`

## Request body

- GroupTypeRequest
  - `membershipId` integer
  - `parentGroupTypeId` integer
  - `name` string, required
  - `namePlural` string, required
  - `description` string
  - `isPrivate` boolean, required
  - `properties` GroupTypeProperties
    - `announcementsHtml` string
    - `chatEnabled` boolean
    - `chatDefaultEnabled` boolean
    - `contactSharingDefaultEnabled` boolean
    - `postsEnabled` boolean
    - `postsDefaultEnabled` boolean
  - `groupRoles` GroupRoleRequest[]
    - `groupRoleId` integer
    - `name` string, required
    - `namePlural` string, required
    - `selfRegistrationAccessCode` 'CLOSED' | 'GROUP_MEMBERS' | 'OPEN', required
    - `dependentRegistrationAccessCode` 'CLOSED' | 'GROUP_MEMBERS' | 'OPEN', required
    - `invitationsAllowed` boolean, required
    - `activitySubmissionNotificationsEnabled` boolean, required
    - `permissions` string[], required

## Response `200`

OK

- GroupTypeResponseGroupTypeFull
  - `success` boolean
  - `error` string
  - `groupType` GroupTypeFull
    - `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
    - `groupRoles` GroupRoleCore[]
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `groupRoleId` integer
      - `name` string
      - `namePlural` string
      - `external` boolean
      - `selfRegistrationAccessCode` 'CLOSED' | 'GROUP_MEMBERS' | 'OPEN'
      - `dependentRegistrationAccessCode` 'CLOSED' | 'GROUP_MEMBERS' | 'OPEN'
      - `invitationsAllowed` boolean
      - `activitySubmissionNotificationsEnabled` boolean
      - `permissions` string[]
    - `parentGroupType` 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
    - `childGroupTypes` 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

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