get:
  operationId: listWorkgroups
  tags:
    - Governance Groups
  summary: List Governance Groups
  description: This API returns list of Governance Groups
  parameters:
    - $ref: '../../../v3/parameters/offset.yaml'
    - $ref: '../../../v3/parameters/limit50.yaml'
    - $ref: '../../../v3/parameters/count.yaml'
    - in: query
      name: sorters
      schema:
        type: string
        format: comma-separated
      description: >-
        Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results)
        Sorting is supported for the following fields: **name, created, modified**

      example: name,-modified
      required: false
  responses:
    '200':
      description: List of Governance Groups
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: "../../schemas/WorkgroupDto.yaml"
    '400':
      $ref: '../../../v3/responses/400.yaml'
    '401':
      $ref: '../../../v3/responses/401.yaml'
    '403':
      $ref: '../../../v3/responses/403.yaml'
    '429':
      $ref: '../../../v3/responses/429.yaml'
    '500':
      $ref: '../../../v3/responses/500.yaml'
  security:
    - oauth2: [ idn:workgroup:read, idn:workgroup:write ]
post:
  operationId: createWorkgroup
  security:
    - oauth2: [ idn:workgroup:read, idn:workgroup:write ]
  tags:
    - Governance Groups
  summary: Create a new Governance Group.
  description: This API creates a new Governance Group.
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: "../../schemas/WorkgroupDto.yaml"
  responses:
    '200':
      description: Governance Group object created.
      content:
        application/json:
          schema:
            $ref: "../../schemas/WorkgroupDto.yaml"
    '400':
      $ref: '../../../v3/responses/400.yaml'
    '401':
      $ref: '../../../v3/responses/401.yaml'
    '403':
      $ref: '../../../v3/responses/403.yaml'
    '429':
      $ref: '../../../v3/responses/429.yaml'
    '500':
      $ref: '../../../v3/responses/500.yaml'