get:
  tags:
    - Client Groups
  summary: Return a client group
  description: Return a detailed info about a client group by a given id
  operationId: ClientgroupGet
  parameters:
    - name: group_id
      in: path
      description: unique client group ID
      required: true
      schema:
        type: string
  responses:
    '200':
      description: Successful Operation
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: ../components/schemas/ClientGroup.yaml
    '404':
      description: Client group not found
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '500':
      description: Invalid Operation
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
put:
  tags:
    - Client Groups
  summary: Save a client group. Require admin access
  description: Update an existing client group or save a new client group
  operationId: ClientgroupPut
  parameters:
    - name: group_id
      in: path
      description: unique client group ID
      required: true
      schema:
        type: string
  requestBody:
    description: >-
      Client group to save. Note: ClientGroup.client_ids field should not be
      set.
    content:
      '*/*':
        schema:
          $ref: ../components/schemas/ClientGroup.yaml
    required: true
  responses:
    '204':
      description: Successful Operation
      content: {}
    '400':
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '500':
      description: Invalid Operation
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
  x-codegen-request-body-name: client group
delete:
  tags:
    - Client Groups
  summary: Delete a client group. Require admin access
  description: Delete a client group by a given id
  operationId: ClientgroupDelete
  parameters:
    - name: group_id
      in: path
      description: unique client group ID
      required: true
      schema:
        type: string
  responses:
    '204':
      description: Successful Operation
      content: {}
    '404':
      description: Client group not found
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '500':
      description: Invalid Operation
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
