> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Group Managed CC Pairs

> Replace the connectors this group manages, and its role on each. Authorized
as a group edit: the caller manages the group, and a scoped manager may only
attach (or re-role) pairs within their managed scope.

> [!NOTE]
>
> **Business Edition Feature**
>
> This feature requires a Business or Enterprise plan. [View plans](https://docs.onyx.app/admins/billing/overview.md)
> or [contact sales](https://onyx.app/contact-sales) to learn more.

> [!NOTE]
>
> **Required permission:** Manage Groups (`manage:user_groups`), or Admin (`admin`).
> A **Group Manager** can also call this, limited to the groups they manage.


## OpenAPI

````yaml PUT /manage/admin/user-group/{user_group_id}/managed-cc-pairs
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /manage/admin/user-group/{user_group_id}/managed-cc-pairs:
    put:
      tags:
        - public
      summary: Set Group Managed Cc Pairs
      description: >-
        Replace the connectors this group manages, and its role on each.
        Authorized

        as a group edit: the caller manages the group, and a scoped manager may
        only

        attach (or re-role) pairs within their managed scope.
      operationId: set_group_managed_cc_pairs
      parameters:
        - name: user_group_id
          in: path
          required: true
          schema:
            type: integer
            title: User Group Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupManagedCCPairsUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ManagedCCPairEntry'
                title: >-
                  Response Set Group Managed Cc Pairs Manage Admin User Group 
                  User Group Id  Managed Cc Pairs Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    GroupManagedCCPairsUpdateRequest:
      properties:
        cc_pairs:
          items:
            $ref: '#/components/schemas/ManagedCCPairEntry'
          type: array
          title: Cc Pairs
      type: object
      required:
        - cc_pairs
      title: GroupManagedCCPairsUpdateRequest
    ManagedCCPairEntry:
      properties:
        cc_pair_id:
          type: integer
          title: Cc Pair Id
        role:
          $ref: '#/components/schemas/ConnectorManageRole'
          default: editor
      type: object
      required:
        - cc_pair_id
      title: ManagedCCPairEntry
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConnectorManageRole:
      type: string
      enum:
        - editor
        - operator
      title: ConnectorManageRole
      description: |-
        A group's role on a cc-pair it manages. Editors change and delete the
        configuration; Operators schedule and monitor indexing.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.