> ## 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 S3 location via API key

> Update project S3 location after successful upload using API key authentication. Requires BUILD_AND_DEPLOY scope.



## OpenAPI

````yaml post /api/projects/{id}/s3-location
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}/s3-location:
    post:
      tags:
        - projects-api-key
      summary: Update project S3 location via API key
      description: >-
        Update project S3 location after successful upload using API key
        authentication. Requires BUILD_AND_DEPLOY scope.
      operationId: ProjectsApiKeyController_updateS3Location
      parameters:
        - name: id
          required: true
          in: path
          description: Project ID
          schema:
            example: proj_123456789
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                s3Location:
                  type: string
                  description: S3 location path
                  example: s3://bucket/path/to/project.zip
              required:
                - s3Location
      responses:
        '200':
          description: Project S3 location updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '404':
          description: Project not found or access denied
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Project:
      type: object
      properties: {}
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````