> ## 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.

# Regenerate project artifacts

> Starts the learn-agent workflow for a tenant-owned project and optional agent. Duplicate project+agent triggers within the dedupe window return the same workflow_id; clients should poll list_project_artifacts for a new latest_version or learn_agent_artifact version to observe completion.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json post /projects/{project_id}/artifacts/regenerate
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: []
security:
  - bearerAuth: []
paths:
  /projects/{project_id}/artifacts/regenerate:
    post:
      tags:
        - Projects
      summary: Regenerate project artifacts
      description: >-
        Starts the learn-agent workflow for a tenant-owned project and optional
        agent. Duplicate project+agent triggers within the dedupe window return
        the same workflow_id; clients should poll list_project_artifacts for a
        new latest_version or learn_agent_artifact version to observe
        completion.
      operationId: regenerate_project_artifacts
      parameters:
        - name: project_id
          in: path
          required: true
          description: Project ID
          schema:
            type: string
        - name: agent_name
          in: query
          required: false
          description: >-
            Optional agent name used to scope the regenerated learn-agent
            artifacts.
          schema:
            type: string
      responses:
        '200':
          description: Learn-agent workflow trigger handle
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflow_id:
                    type: string
                  project_id:
                    type: string
                  agent_name:
                    type:
                      - string
                      - 'null'
                required:
                  - workflow_id
                  - project_id
                  - agent_name
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````