get:
  tags:
    - Connector Rule Management
  operationId: getConnectorRuleList
  summary: List Connector Rules
  description: >-
    Returns the list of connector rules.

    A token with ORG_ADMIN authority is required to call this API.

  responses:
    '200':
      description: A list of connector rules
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/ConnectorRuleResponse.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:rule-management-connector:read, idn:rule-management-connector:manage]
post:
  tags:
    - Connector Rule Management
  operationId: createConnectorRule
  summary: Create Connector Rule
  description: >-
    Creates a new connector rule.

    A token with ORG_ADMIN authority is required to call this API.

  requestBody:
    required: true
    description: The connector rule to create
    content:
      application/json:
        schema:
          $ref: '../schemas/ConnectorRuleCreateRequest.yaml'
  responses:
    '201':
      description: The created connector rule
      content:
        application/json:
          schema:
            $ref: '../schemas/ConnectorRuleResponse.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:rule-management-connector:manage]
