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

# Update repository configuration

> Update PR review settings for a specific repository.



## OpenAPI

````yaml https://neo.api.projectdiscovery.io/api/openapi.json patch /api/v1/github/repos/{id}
openapi: 3.1.0
info:
  contact:
    name: ProjectDiscovery
    url: https://neo.projectdiscovery.io
  description: Neo API Server - Security agent orchestration platform
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Neo API
  version: 1.0.0
servers:
  - description: Production
    url: https://neo.api.projectdiscovery.io
  - description: Local development
    url: http://localhost:8080
security: []
tags:
  - description: Task execution and management
    name: Tasks
  - description: Agent listing and management
    name: Agents
  - description: Public agent directory
    name: Agent Directory
  - description: User file storage management
    name: Files
  - description: User working memory management
    name: Memory
  - description: Scheduled and recurring task management
    name: Schedules
  - description: Knowledge base and semantic search
    name: Knowledge
  - description: Encrypted user credentials and API keys
    name: Secrets
  - description: Neo API key management for programmatic access
    name: API Keys
  - description: User profile and account information
    name: User
  - description: Task and LLM usage tracking
    name: Usage
  - description: Bring Your Own Key provider management
    name: BYOK
  - description: Model discovery and capabilities
    name: Models
  - description: Third-party integrations
    name: Integrations
  - description: Skill knowledge documents for agent prompts
    name: Skills
  - description: Team management and member invitations
    name: Teams
  - description: Prompt library management and discovery
    name: Prompts
  - description: Slack bot integration for workspace installation and OAuth
    name: Slack
  - description: GitHub integration for PR reviews and repository management
    name: GitHub
  - description: Vulnerability issue tracking and management
    name: Issues
  - description: Subscription billing and plans
    name: Billing
  - description: Project management and member assignments
    name: Projects
  - description: SSH key pair generation and management for remote server access
    name: SSH Keys
  - description: Codebase structural analysis and mapping
    name: Codemaps
  - description: AI-generated codebase documentation and security analysis
    name: CodeWiki
  - description: Captured HTTP traffic query and replay
    name: Network Events
paths:
  /api/v1/github/repos/{id}:
    patch:
      tags:
        - GitHub
      summary: Update repository configuration
      description: Update PR review settings for a specific repository.
      operationId: patch-v1-github-repos-id
      parameters:
        - description: Repository ID (UUID)
          in: path
          name: id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRepoConfigRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitHubRepoResponse'
          description: Repository configuration updated
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not authorized to update this repository
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Repository not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal server error
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    UpdateRepoConfigRequest:
      properties:
        author_exclude:
          items:
            type: string
          type: array
        author_include:
          items:
            type: string
          type: array
        auto_review:
          description: Turn automatic reviews on or off for this repository.
          type: boolean
        branch_exclude:
          items:
            type: string
          type: array
        branch_include:
          items:
            type: string
          type: array
        comment_mode:
          enum:
            - summary_only
            - inline_only
            - summary+inline
          type: string
        custom_instructions:
          type: string
        deploy_wait_timeout:
          description: >-
            Seconds to hold a PR review for the preview deployment (0 disables
            the deploy-gated hold)
          maximum: 3600
          minimum: 0
          type: integer
        draft_policy:
          enum:
            - skip
            - summary_only
            - review
          type: string
        exclude_patterns:
          description: File patterns to exclude from reviews
          items:
            type: string
          type: array
        focus:
          enum:
            - security
            - performance
            - style
            - all
          type: string
        gating:
          enum:
            - none
            - block_on_critical
            - block_on_high
          type: string
        high_level_summary:
          type: boolean
        keyword_exclude:
          items:
            type: string
          type: array
        keyword_include:
          items:
            type: string
          type: array
        label_exclude:
          items:
            type: string
          type: array
        label_include:
          items:
            type: string
          type: array
        max_inline_comments:
          maximum: 100
          minimum: 1
          type: integer
        output_format:
          enum:
            - compact
            - table
            - checklist
          type: string
        path_instructions:
          items:
            properties:
              instructions:
                type: string
              path:
                type: string
            type: object
          type: array
        repo_full_name:
          description: Full repository name (owner/repo)
          type: string
        reset_fields:
          description: >-
            Settings to clear so this repository follows the organization
            defaults again. Do not also set a field you are clearing in the same
            request.
          items:
            enum:
              - auto_review
              - tone
              - verbosity
              - severity_threshold
              - focus
              - custom_instructions
              - comment_mode
              - gating
              - draft_policy
              - output_format
              - suggested_changes_enabled
              - high_level_summary
              - max_inline_comments
              - deploy_wait_timeout
              - exclude_patterns
              - author_include
              - author_exclude
              - label_include
              - label_exclude
              - branch_include
              - branch_exclude
              - keyword_include
              - keyword_exclude
            type: string
          type: array
        severity_threshold:
          enum:
            - critical
            - high
            - medium
            - low
            - info
            - all
          type: string
        streaming_enabled:
          type: boolean
        suggested_changes_enabled:
          type: boolean
        tone:
          enum:
            - chill
            - balanced
            - assertive
            - roast
          type: string
        verbosity:
          enum:
            - brief
            - normal
            - detailed
          type: string
      required:
        - repo_full_name
      type: object
    GitHubRepoResponse:
      properties:
        auto_review_enabled:
          description: >-
            This repository's own automatic-review setting. true turns reviews
            on, false turns them off, and null means follow the organization
            default. For the setting actually in effect, see
            effective_config.auto_review_enabled.
          nullable: true
          type: boolean
        created_at:
          description: When the repository was added
          format: date-time
          type: string
        custom_instructions:
          description: >-
            This repository's own custom instructions; null means follow the
            organization default. See effective_config.custom_instructions.
          nullable: true
          type: string
        deploy_wait_timeout:
          description: >-
            This repository's own deploy-gated hold in seconds (0 disables it);
            null means follow the organization default. See
            effective_config.deploy_wait_timeout.
          maximum: 3600
          minimum: 0
          nullable: true
          type: integer
        draft_policy:
          description: >-
            This repository's own draft-PR policy; null means follow the
            organization default. See effective_config.draft_policy.
          enum:
            - skip
            - summary_only
            - review
          nullable: true
          type: string
        effective_config:
          $ref: '#/components/schemas/EffectiveConfig'
        exclude_patterns:
          description: File patterns to exclude from reviews
          example:
            - '*.md'
            - vendor/**
          items:
            type: string
          type: array
        focus:
          description: >-
            This repository's own focus setting; null means follow the
            organization default. See effective_config.focus.
          enum:
            - security
            - performance
            - style
            - all
          nullable: true
          type: string
        gating:
          description: >-
            This repository's own merge-gating setting; null means follow the
            organization default. See effective_config.gating.
          enum:
            - none
            - block_on_critical
            - block_on_high
          nullable: true
          type: string
        high_level_summary:
          description: >-
            This repository's own high-level-summary setting; null means follow
            the organization default. See effective_config.high_level_summary.
          nullable: true
          type: boolean
        id:
          description: Repository configuration ID
          format: uuid
          type: string
        installation_id:
          description: Parent installation ID
          format: uuid
          type: string
        max_inline_comments:
          description: >-
            This repository's own inline-comment limit; null means follow the
            organization default. See effective_config.max_inline_comments.
          nullable: true
          type: integer
        output_format:
          description: >-
            This repository's own output format; null means follow the
            organization default. See effective_config.output_format.
          enum:
            - compact
            - table
            - checklist
          nullable: true
          type: string
        path_instructions:
          items:
            properties:
              instructions:
                type: string
              path:
                type: string
            type: object
          type: array
        repo_full_name:
          description: Full repository name (owner/repo)
          example: octocat/hello-world
          type: string
        review_output_mode:
          description: >-
            This repository's own review output mode; null means follow the
            organization default. See effective_config.review_output_mode.
          enum:
            - summary_only
            - comments_only
            - both
          nullable: true
          type: string
        severity_threshold:
          description: >-
            This repository's own severity threshold; null means follow the
            organization default. See effective_config.severity_threshold.
          enum:
            - critical
            - high
            - medium
            - low
            - info
            - all
          nullable: true
          type: string
        streaming_enabled:
          type: boolean
        suggested_changes_enabled:
          description: >-
            This repository's own suggested-changes setting; null means follow
            the organization default. See
            effective_config.suggested_changes_enabled.
          nullable: true
          type: boolean
        tone:
          description: >-
            This repository's own tone setting; null means follow the
            organization default. See effective_config.tone for the value in
            effect.
          enum:
            - chill
            - balanced
            - assertive
            - roast
          nullable: true
          type: string
        updated_at:
          description: When the repository config was last updated
          format: date-time
          type: string
        verbosity:
          description: >-
            This repository's own verbosity setting; null means follow the
            organization default. See effective_config.verbosity.
          enum:
            - brief
            - normal
            - detailed
          nullable: true
          type: string
        visibility:
          description: Repository visibility (public, private, or internal)
          type: string
      required:
        - id
        - installation_id
        - repo_full_name
        - exclude_patterns
        - created_at
        - updated_at
      type: object
    ErrorResponse:
      properties:
        code:
          description: >
            Stable machine-readable error code — branch on this rather than

            matching the human `error`/`message` strings. Domain codes include

            `user_spending_cap_reached`, `project_spending_cap_reached`, and

            `insufficient_neo_credits`; otherwise it mirrors the error kind

            (e.g. `forbidden`, `invalid_request`, `not_exists`,
            `already_exists`).
          example: user_spending_cap_reached
          type: string
        error:
          example: Bad request
          type: string
        error_id:
          description: Correlation id for a specific error instance, when present.
          type: string
        kind:
          description: Coarse error category (e.g. "forbidden request", "invalid request").
          example: forbidden request
          type: string
        message:
          description: |
            Human-readable detail (the kind prefixed to the error). For display,
            not for branching.
          type: string
      required:
        - error
      type: object
    EffectiveConfig:
      properties:
        author_exclude:
          $ref: '#/components/schemas/EffectiveFilterField'
        author_include:
          $ref: '#/components/schemas/EffectiveFilterField'
        auto_review_enabled:
          $ref: '#/components/schemas/EffectiveConfigField'
        branch_exclude:
          $ref: '#/components/schemas/EffectiveFilterField'
        branch_include:
          $ref: '#/components/schemas/EffectiveFilterField'
        custom_instructions:
          $ref: '#/components/schemas/EffectiveConfigField'
        deploy_wait_timeout:
          $ref: '#/components/schemas/EffectiveConfigField'
        draft_policy:
          $ref: '#/components/schemas/EffectiveConfigField'
        exclude_patterns:
          $ref: '#/components/schemas/EffectiveFilterField'
        focus:
          $ref: '#/components/schemas/EffectiveConfigField'
        gating:
          $ref: '#/components/schemas/EffectiveConfigField'
        high_level_summary:
          $ref: '#/components/schemas/EffectiveConfigField'
        keyword_exclude:
          $ref: '#/components/schemas/EffectiveFilterField'
        keyword_include:
          $ref: '#/components/schemas/EffectiveFilterField'
        label_exclude:
          $ref: '#/components/schemas/EffectiveFilterField'
        label_include:
          $ref: '#/components/schemas/EffectiveFilterField'
        max_inline_comments:
          $ref: '#/components/schemas/EffectiveConfigField'
        output_format:
          $ref: '#/components/schemas/EffectiveConfigField'
        review_output_mode:
          $ref: '#/components/schemas/EffectiveConfigField'
        severity_threshold:
          $ref: '#/components/schemas/EffectiveConfigField'
        suggested_changes_enabled:
          $ref: '#/components/schemas/EffectiveConfigField'
        tone:
          $ref: '#/components/schemas/EffectiveConfigField'
        verbosity:
          $ref: '#/components/schemas/EffectiveConfigField'
      type: object
    EffectiveFilterField:
      properties:
        source:
          enum:
            - repo
            - org
            - default
          type: string
        value:
          items:
            type: string
          type: array
      required:
        - value
        - source
      type: object
    EffectiveConfigField:
      properties:
        source:
          enum:
            - repo
            - org
            - default
            - paused
          type: string
        value:
          type: string
      required:
        - value
        - source
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT authentication token
      scheme: bearer
      type: http
    ApiKeyAuth:
      description: Neo API key (neo_sk_* prefix)
      in: header
      name: X-Api-Key
      type: apiKey

````