---
title: "Create a consumer group"
url: "https://nov18-dev.movespot.fyi/apis/konnect-runtime-groups-configuration-0/versions/af18902c-58f1-49d7-8ec2-9987b4e0d1bd/operations/post-runtimeGroupId-core-entities-consumer_groups"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-runtime-groups-configuration-0/versions/af18902c-58f1-49d7-8ec2-9987b4e0d1bd.md

# Create a consumer group

`POST` `/runtime-groups/{runtimeGroupId}/core-entities/consumer_groups`

Operation ID: `post-runtimeGroupId-core-entities-consumer_groups`

Create a consumer group by passing a name and optional tags in the request body.

## Path parameters

- `runtimeGroupId` (string, required) - The ID of your runtime group. This variable is available in the Konnect manager

## Request body

Content types: `application/json`

## Responses

- `200` - Example response

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Runtime Groups Configuration
  version: 0.0.1
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
paths:
  /runtime-groups/{runtimeGroupId}/core-entities/consumer_groups:
    parameters:
      - $ref: "#/components/parameters/runtimeGroupId"
    post:
      operationId: post-runtimeGroupId-core-entities-consumer_groups
      summary: Create a consumer group
      description: Create a consumer group by passing a name and optional tags in the
        request body.
      requestBody:
        $ref: "#/components/requestBodies/consumer-groups-request"
      responses:
        "200":
          $ref: "#/components/responses/consumer-groups-response"
      tags:
        - consumer-groups
security:
  - konnectAccessToken: []
  - personalAccessToken: []
components:
  parameters:
    runtimeGroupId:
      name: runtimeGroupId
      in: path
      required: true
      schema:
        type: string
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The ID of your runtime group. This variable is available in the
        Konnect manager
  requestBodies:
    consumer-groups-request:
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                description: A unique name for the consumer group you want to create.
                type: string
                example: Example
              tags:
                description: An optional set of strings associated with the consumer group for
                  grouping and filtering.
                type: array
                items:
                  type: string
            required:
              - name
            x-examples:
              Example 1:
                name: JL
                tags:
                  - tag1
                  - tag2
          examples:
            Example 1:
              value:
                name: Example
                tags:
                  - string
      description: Consumer groups request body
  responses:
    consumer-groups-response:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: array
                items:
                  type: object
                  properties:
                    created_at:
                      description: Unix epoch when the resource was created.
                      type: integer
                      example: 1685551597
                    id:
                      description: Consumer group ID
                      type: string
                      example: 0cf03a37-8987-4c3b-a792-5b1db3eeedc6
                    name:
                      description: The name of the consumer group
                      type: string
                      example: example
                    tags:
                      description: >
                        An optional set of strings associated with the Consumer
                        for grouping and filtering.
                      type: array
                      items:
                        type: string
                    updated_at:
                      description: The unix epoc representation of when the consumer group was
                        updated.
                      type: integer
                      example: 1685551597
            x-examples:
              Example 1:
                data:
                  - created_at: 1685551597
                    id: 0cf03a37-8987-4c3b-a792-5b1db3eeedc6
                    name: test
                    tags:
                      - tag1
                    updated_at: 1685551597
          examples:
            Example consumer group response:
              value:
                data:
                  - created_at: 1685551597
                    id: 0cf03a37-8987-4c3b-a792-5b1db3eeedc6
                    name: test
                    tags:
                      - tag1
                    updated_at: 1685551597
        application/xml:
          schema:
            type: object
            properties: {}
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      description: >-
        The Konnect access token is meant to be used by the Konnect dashboard
        and the decK CLI to

        authenticate with.
    personalAccessToken:
      type: http
      scheme: bearer
      description: The personal access token is meant to be used as an alternative to
        basic-auth when accessing Konnect via APIs. You can generate a Personal
        Access Token (PAT) from the personal access token page in the Konnect
        dashboard.
```
