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

# Publish an artifact's latest version

> Publishes the artifact's head version. Only valid when the project's `artifact_publish_mode` is `manual_publish`. Requires admin permissions.




## OpenAPI

````yaml /api-reference/openapi-public.yaml post /projects/{project_id}/artifacts/{slug}/publish-head/
openapi: 3.0.3
info:
  title: Clarifeye Platform API — Public API
  description: >
    Forward-facing, supported REST API for new integrators of the Clarifeye
    Platform.


    Covers the curated public surface: authentication, knowledge management

    (documents), users & teams, signals, and tool execution. New integrations

    should target these endpoints.


    ## Authentication

    All endpoints require authentication. Include the Authorization header in
    every request using either format:

    - `Authorization: Token <token_key>`

    - `Authorization: Bearer <token_key>`
  version: 1.0.0
  contact:
    name: Clarifeye Support
servers:
  - url: https://eu.app.clarifeye.ai/api/v1
    description: EU
  - url: https://us.app.clarifeye.ai/api/v1
    description: US
security:
  - BearerAuth: []
  - TokenAuth: []
tags:
  - name: Users
    description: Manage users within a project
  - name: Invitations
    description: Manage project invitations
  - name: Documents
    description: Manage documents within a project
  - name: Signals
    description: Submit signals about the project's content for domain experts to review
  - name: Tools
    description: Execute configured AI tools with custom parameters
  - name: Interviews
    description: >-
      Assign, run and review structured interview conversations, and manage
      interview drafts and campaigns
  - name: Artifacts
    description: >
      Knowledge-store artifact catalog: list artifacts, create and edit custom
      artifacts,

      manage scope membership, read and publish versions, and configure the
      cohesion guide.
  - name: Knowledge Changelog
    description: Chronological log of changes to the knowledge store's artifacts.
paths:
  /projects/{project_id}/artifacts/{slug}/publish-head/:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
      - name: slug
        in: path
        required: true
        schema:
          type: string
    post:
      tags:
        - Artifacts
      summary: Publish an artifact's latest version
      description: >
        Publishes the artifact's head version. Only valid when the project's
        `artifact_publish_mode` is `manual_publish`. Requires admin permissions.
      operationId: publishArtifactHead
      responses:
        '200':
          description: Updated artifact
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactDetail'
        '400':
          description: The project publishes automatically, or the artifact has no version.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ProjectId:
      name: project_id
      in: path
      required: true
      description: UUID of the project
      schema:
        type: string
        format: uuid
  schemas:
    ArtifactDetail:
      allOf:
        - $ref: '#/components/schemas/ArtifactSummary'
        - type: object
          properties:
            definition_long:
              type: string
            format_description:
              type: string
              description: Custom artifacts only; empty string for predefined types.
            capture_discipline:
              type: string
              description: Custom artifacts only; empty string for predefined types.
            selected_version_number:
              type: integer
              nullable: true
            payload:
              description: |
                Content of the selected version; shape depends on
                `technical_type`. Null when the artifact has no versions.
    ArtifactSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        slug:
          type: string
        title:
          type: string
        semantic_type:
          $ref: '#/components/schemas/ArtifactSemanticType'
        technical_type:
          $ref: '#/components/schemas/ArtifactTechnicalType'
        in_scope:
          type: boolean
        display_order:
          type: integer
        group:
          type: string
          description: >
            Catalog group label; empty for predefined artifacts (their section
            derives

            from `semantic_type`) and for ungrouped custom ones. "Foundation"
            and

            "Other" are reserved for UI-derived sections and cannot be set; the
            four

            standard section names ("Project Management", …) are NOT reserved —
            a

            custom artifact may use one to file itself alongside the predefined

            artifacts.
        definition_short:
          type: string
        head_version_number:
          type: integer
          nullable: true
        head_updated_at:
          type: string
          format: date-time
          nullable: true
        version_count:
          type: integer
        can_delete:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      example:
        error: User not found
    ArtifactSemanticType:
      type: string
      description: |
        What the artifact means in the knowledge store. Predefined types are
        seeded by the platform; `custom` artifacts are user-created.
      enum:
        - brief
        - project_plan
        - mental_map
        - general_knowledge
        - playbooks
        - library_description
        - design_templates
        - custom
    ArtifactTechnicalType:
      type: string
      description: |
        Storage/editing format of the artifact's payload — string for
        `markdown` and `bpmn_xml`, object for `mental_map`, array for
        `playbook_list` and `design_template_list`.
      enum:
        - markdown
        - mental_map
        - playbook_list
        - design_template_list
        - bpmn_xml
  responses:
    Unauthorized:
      description: Unauthorized - missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Authentication credentials were not provided.
    Forbidden:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: You do not have permission to perform this action.
    NotFound:
      description: Not found - resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Not found.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer <token>'
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use Authorization: Token <token>'

````