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

# Upsert PR review config

> Create or update PR review configuration for a project



## OpenAPI

````yaml https://raw.githubusercontent.com/claryai/clary-static/refs/heads/main/swagger.json put /api/v1/projects/{projectUuid}/pr-review
openapi: 3.0.0
info:
  title: Silicon API
  version: 2.603.0
  description: >
    Open API documentation for all public Silicon API endpoints. #
    Authentication Before you get started, you might need to create a Personal
    Access Token to authenticate via the API. You can create a token by
    following this guide:
    https://docs.meetsilicon.com/references/personal_tokens
  license:
    name: MIT
  contact:
    name: Silicon Support
    email: support@meetsilicon.com
    url: https://docs.meetsilicon.com/help-and-contact/contact/contact_info/
servers:
  - url: /
security: []
tags:
  - name: My Account
    description: These routes allow users to manage their own user account.
  - name: Organizations
    description: >-
      Each user is a member of a single organization. These routes allow users
      to manage their organization. Most actions are only available to admin
      users.
  - name: Projects
    description: >-
      Projects belong to a single organization. These routes allow users to
      manage their projects, browse content, and execute queries. Users inside
      an organization might have access to a project from an organization-level
      role or they might be granted access to a project directly.
  - name: Spaces
    description: >-
      Spaces allow you to organize charts and dashboards within a project. They
      also allow granular access to content by allowing you to create private
      spaces, which are only accessible to the creator and admins.
  - name: Roles & Permissions
    description: >-
      These routes allow users to manage roles and permissions for their
      organization.
    externalDocs:
      url: https://docs.meetsilicon.com/references/roles
  - name: Query
    description: >-
      These routes allow users to execute and manage queries against their data
      warehouse. This includes metric queries, SQL queries, and retrieving query
      results.
paths:
  /api/v1/projects/{projectUuid}/pr-review:
    put:
      tags:
        - PR Review
      summary: Upsert PR review config
      description: Create or update PR review configuration for a project
      operationId: upsertPrReviewConfig
      parameters:
        - in: path
          name: projectUuid
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePrReviewConfig'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPrReviewConfig'
      security: []
components:
  schemas:
    UUID:
      type: string
      format: uuid
      description: |-
        Stringified UUIDv4.
        See [RFC 4112](https://tools.ietf.org/html/rfc4122)
      pattern: >-
        [0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}
    CreatePrReviewConfig:
      properties:
        repository:
          type: string
        enabled:
          type: boolean
      required:
        - repository
        - enabled
      type: object
    ApiPrReviewConfig:
      properties:
        results:
          $ref: '#/components/schemas/PrReviewConfig'
        status:
          type: string
          enum:
            - ok
          nullable: false
      required:
        - results
        - status
      type: object
    PrReviewConfig:
      properties:
        updatedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        repository:
          type: string
          description: The GitHub repository (owner/repo) to watch for PRs
        enabled:
          type: boolean
        projectUuid:
          type: string
      required:
        - updatedAt
        - createdAt
        - repository
        - enabled
        - projectUuid
      type: object
      description: |-
        Types for the AI-powered PR Review feature.

        When a project has a GitHub dbt connection, users can enable
        automated PR reviews that use an AI agent to review code changes.

````

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