---
title: "GroupCreateRequest"
url: "https://developers.vzconnect.com/apis/groups-hierarchy-api/versions/6301049c-0ba5-4584-a236-ea7417e150ff/schemas/GroupCreateRequest"
---

> Full API specification: https://developers.vzconnect.com/apis/groups-hierarchy-api/versions/6301049c-0ba5-4584-a236-ea7417e150ff.md

# GroupCreateRequest

Payload to create a new group

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Groups Management API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    GroupName:
      type: string
      description: Name of the group
      minLength: 1
      maxLength: 32
      pattern: ^[\w\s\-\.&()]{1,32}$
    GroupIdWriteOnly:
      type: string
      description: Group identifier
      writeOnly: true
      minLength: 36
      maxLength: 36
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
    ExternalIdWriteOnly:
      type: string
      description: Reference to an object in Reveal by a custom ID set by the consumer, you.
      writeOnly: true
      minLength: 3
      maxLength: 45
      pattern: ^(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
    GroupCreateRequest:
      title: GroupCreateRequest
      description: Payload to create a new group
      type: object
      additionalProperties: false
      required:
        - name
        - parentGroup
      properties:
        name:
          $ref: "#/components/schemas/GroupName"
        parentGroup:
          type: object
          title: Parent group for the group
          description: Reference to the primary (parent) group. Provide either groupId or
            externalId.
          oneOf:
            - type: object
              additionalProperties: false
              required:
                - groupId
              properties:
                groupId:
                  $ref: "#/components/schemas/GroupIdWriteOnly"
            - type: object
              additionalProperties: false
              required:
                - externalId
              properties:
                externalId:
                  $ref: "#/components/schemas/ExternalIdWriteOnly"
        externalIds:
          type: array
          description: Optional customer-owned external identifiers for the group in
            scope:value format.
          minItems: 0
          maxItems: 1
          items:
            type: string
            minLength: 3
            maxLength: 45
            pattern: ^(?=.{3,45}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
```
