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

# Обновить статус пары «коннектор — учётные данные»

> This method returns nearly immediately. It simply sets some signals and
optimistically assumes any running background processes will clean themselves up.
This is done to improve the perceived end user experience.

Returns HTTPStatus.OK if everything finished.

> [!NOTE]
>
> **Необходимое право:** «Управление коннекторами и наборами документов» (`manage:connectors`)
> или «Администратор» (`admin`). **Менеджер группы** также может вызывать этот метод,
> но только для пар «коннектор — учётные данные» в группах, которыми он управляет.


## OpenAPI

````yaml PUT /manage/admin/cc-pair/{cc_pair_id}/status
openapi: 3.1.0
info:
  title: Yahont API
  description: Yahont API для поиска и чата по данным компании на базе ИИ
  version: Development
servers:
  - url: https://your-yahont-domain.com/api
security: []
paths:
  /manage/admin/cc-pair/{cc_pair_id}/status:
    put:
      tags:
        - public
      summary: Update Cc Pair Status
      description: >-
        This method returns nearly immediately. It simply sets some signals and

        optimistically assumes any running background processes will clean
        themselves up.

        This is done to improve the perceived end user experience.


        Returns HTTPStatus.OK if everything finished.
      operationId: update_cc_pair_status
      parameters:
        - name: cc_pair_id
          in: path
          required: true
          schema:
            type: integer
            title: Cc Pair Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CCStatusUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    CCStatusUpdateRequest:
      properties:
        status:
          $ref: '#/components/schemas/ConnectorCredentialPairStatus'
      type: object
      required:
        - status
      title: CCStatusUpdateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConnectorCredentialPairStatus:
      type: string
      enum:
        - SCHEDULED
        - INITIAL_INDEXING
        - ACTIVE
        - PAUSED
        - DELETING
        - INVALID
      title: ConnectorCredentialPairStatus
    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.