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

# Update

> Update project settings: rename it, connect or disconnect a repository, or change the production branch. Renaming never changes the slug or the public URL.



## OpenAPI

````yaml /openapi.json patch /v1/orgs/{orgId}/projects/{projectId}
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}:
    patch:
      tags:
        - projects
      summary: Update
      description: >-
        Update project settings: rename it, connect or disconnect a repository,
        or change the production branch. Renaming never changes the slug or the
        public URL.
      operationId: projects.update
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: New display name, 1-100 characters.
                gitRepo:
                  type:
                    - string
                    - 'null'
                  pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
                  description: >-
                    Repository to connect as "owner/repo" — pushes and pull
                    requests there drive deploys and previews. Send null to
                    disconnect.
                gitRef:
                  type: string
                  description: Production branch for push-to-deploy, 1-100 characters.
      responses:
        '200':
          description: The updated project.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  slug:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                  runtimeClass:
                    type: string
                    enum:
                      - scale-to-zero
                      - always-on
                  region:
                    type: string
                    description: >-
                      Where the app runs: a compute region id for always-on
                      apps, "global" for scale-to-zero apps (they run on the
                      global edge). Immutable after creation. The catalog lives
                      at regions.list.
                  gitRepo:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Connected repository as "owner/repo" — pushes and pull
                      requests there drive deploys and previews; null when no
                      repository is connected.
                  gitRef:
                    type: string
                    description: Production branch — pushes to it deploy automatically.
                  url:
                    type: string
                    description: >-
                      Public URL on the managed domain
                      ("https://<slug>.korve.app").
                  createdAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - slug
                  - runtimeClass
                  - region
                  - gitRepo
                  - gitRef
                  - url
        '404':
          description: No such project in this organization.
        '422':
          description: Invalid name, gitRepo, or gitRef — or no fields to update.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````