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

# Update project via API key

> Update project details using API key authentication. Requires BUILD_AND_DEPLOY scope.



## OpenAPI

````yaml patch /api/projects/{id}
openapi: 3.0.0
info:
  title: LeanMCP SDK API
  description: >-
    API endpoints for LeanMCP SDK integration. These endpoints use API key
    authentication and are designed for programmatic access from the CLI and
    SDK.
  version: 1.0.0
servers:
  - url: https://api.leanmcp.com
    description: Production
  - url: http://localhost:3001
    description: Local Development
security: []
tags:
  - name: builds-sdk
  - name: chat-messages-api-key
  - name: chats-api-key
  - name: deployments-api-key
  - name: deployments-sdk
  - name: mapping-sdk
  - name: projects-api-key
paths:
  /api/projects/{id}:
    patch:
      tags:
        - projects-api-key
      summary: Update project via API key
      description: >-
        Update project details using API key authentication. Requires
        BUILD_AND_DEPLOY scope.
      operationId: ProjectsApiKeyController_updateProject
      parameters:
        - name: id
          required: true
          in: path
          description: Project ID
          schema:
            example: proj_123456789
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectDto'
      responses:
        '200':
          description: Project updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '404':
          description: Project not found or access denied
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateProjectDto:
      type: object
      properties:
        name:
          type: string
          description: Project name
        description:
          type: string
          description: Project description
        repositoryUrl:
          type: string
          description: Repository URL
        framework:
          type: string
          description: Framework
        status:
          type: string
          description: Project status
          enum:
            - active
            - archived
            - deleted
        s3Location:
          type: string
          description: S3 location
        templateId:
          type: string
          description: Template ID used to create this project
          example: 03b3640c-9e47-4750-be37-2988b742b687
    Project:
      type: object
      properties: {}
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````