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

# Plan Project Uploads

> Diff a ``{path, sha256}`` manifest against a project's files.

Paths are relative to the project and are planned under its prefix, so a
path that tries to leave it comes back as a per-entry ``error``. The bytes
go straight to the object store through the returned presigned PUTs.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workspaces/{workspace}/projects/{project_id}/files/upload-urls
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/workspaces/{workspace}/projects/{project_id}/files/upload-urls:
    post:
      tags:
        - v1
        - protected
        - projects
      summary: Plan Project Uploads
      description: >-
        Diff a ``{path, sha256}`` manifest against a project's files.


        Paths are relative to the project and are planned under its prefix, so a

        path that tries to leave it comes back as a per-entry ``error``. The
        bytes

        go straight to the object store through the returned presigned PUTs.
      operationId: plan_project_uploads_v1_projects__project_id__files_upload_urls_post
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            format: uuid
            title: Project Id
            type: string
        - description: Slug of the workspace the request acts in
          in: path
          name: workspace
          required: true
          schema:
            description: Slug of the workspace the request acts in
            maxLength: 120
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title: Workspace
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadPlanRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadPlanResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    UploadPlanRequest:
      additionalProperties: false
      properties:
        files:
          items:
            $ref: '#/components/schemas/UploadPlanEntry'
          maxItems: 100
          minItems: 1
          title: Files
          type: array
      required:
        - files
      title: UploadPlanRequest
      type: object
    UploadPlanResponse:
      properties:
        uploads:
          items:
            $ref: '#/components/schemas/PlannedUpload'
          title: Uploads
          type: array
      required:
        - uploads
      title: UploadPlanResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    UploadPlanEntry:
      properties:
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        path:
          title: Path
          type: string
        sha256:
          title: Sha256
          type: string
      required:
        - path
        - sha256
      title: UploadPlanEntry
      type: object
    PlannedUpload:
      properties:
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        expires_in:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expires In
        headers:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Headers
        method:
          anyOf:
            - type: string
            - type: 'null'
          title: Method
        path:
          title: Path
          type: string
        status:
          enum:
            - unchanged
            - upload
            - error
          title: Status
          type: string
        upload_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Upload Url
      required:
        - path
        - status
      title: PlannedUpload
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````