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

# Update project artifact

> Replaces the stored text of one uploaded project artifact, preserving its id, creation time, and agent. Send either content for a full replacement or patch for ordered exact-match edits, never both. The response carries metadata and the refreshed content digest, not the document.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json patch /projects/{project_id}/artifacts/{artifact_id}
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /projects/{project_id}/artifacts/{artifact_id}:
    patch:
      tags:
        - Artifacts
      summary: Update project artifact
      description: >-
        Replaces the stored text of one uploaded project artifact, preserving
        its id, creation time, and agent. Send either content for a full
        replacement or patch for ordered exact-match edits, never both. The
        response carries metadata and the refreshed content digest, not the
        document.
      operationId: update_project_artifact
      parameters:
        - name: project_id
          in: path
          required: true
          description: Project ID
          schema:
            type: string
        - name: artifact_id
          in: path
          required: true
          description: Uploaded artifact ID
          schema:
            type: string
      responses:
        '200':
          description: Updated uploaded text artifact
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  project_id:
                    type: string
                  agent_name:
                    type:
                      - string
                      - 'null'
                  filename:
                    type: string
                  content_type:
                    type: string
                  size_bytes:
                    type: number
                  created_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  content_sha256:
                    type:
                      - string
                      - 'null'
                required:
                  - id
                  - project_id
                  - agent_name
                  - filename
                  - content_type
                  - size_bytes
                  - created_at
                  - content_sha256
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````