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

# Start chart mirror

> Chart mirror — the chart-side twin of prepull. Static sub-paths must be

**Authorisation:** `registry:Prepull` on `krn:celum:registry:{id}`.

**Assistant tool:** `mirror_registry_charts`



## OpenAPI

````yaml /openapi.json post /api/registries/{id}/mirror-charts
openapi: 3.0.3
info:
  description: >-
    The HTTP surface of the Celum backend, generated from its own router and

    authorisation map — so this list cannot drift from the server that serves
    it.


    **Every operation states the IAM action and resource it is authorised

    against.** That pairing is the part worth reading: a policy naming the right

    action against the wrong resource matches nothing, and fails silently.


    Request and response bodies come from the Go types the handlers send and

    decode. Where those types do not determine the shape (an interface, a

    map[string]any, an unknown custom encoding), the operation says so in

    `x-celum-schema-gap` instead of carrying a guessed schema.
  title: Celum API
  version: 1.0.0
servers:
  - description: Your Celum deployment
    url: https://{host}
    variables:
      host:
        default: celum.example.com
        description: The host your Celum backend is served from
security:
  - sessionCookie: []
  - bearerToken: []
tags:
  - description: AI assistant & MCP
    name: ai-assistant
  - description: Clusters & CAPI lifecycle
    name: capi
  - description: Certificates & external secrets
    name: certs
  - description: GitOps & apps
    name: gitops
  - description: IAM, audit & auth
    name: iam
  - description: Image library
    name: images
  - description: Infrastructure & supervisors
    name: infrastructure
  - description: Networking
    name: networking
  - description: Observability & platform health
    name: observability
  - description: Platform onboarding & settings
    name: platform-settings
  - description: Projects
    name: projects
  - description: Registries & mirroring
    name: registries
  - description: Security & flows
    name: security
  - description: Storage
    name: storage
  - description: Templates & addons
    name: templates
  - description: Virtualization platform (KubeVirt/CDI)
    name: virt
  - description: Virtual machines
    name: vms
  - description: Workloads & topology
    name: workloads
paths:
  /api/registries/{id}/mirror-charts:
    post:
      tags:
        - registries
      summary: Start chart mirror
      description: |-
        Chart mirror — the chart-side twin of prepull. Static sub-paths must be

        **Authorisation:** `registry:Prepull` on `krn:celum:registry:{id}`.

        **Assistant tool:** `mirror_registry_charts`
      operationId: post_registries_byId_mirrorCharts
      parameters:
        - description: The object's identifier.
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.startChartMirrorRequest.Input'
        required: false
      responses:
        '202':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/api.chartMirrorJob'
                nullable: true
                type: object
          description: Accepted.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorBody'
          description: Bad Request.
        '401':
          description: Not authenticated — no valid session cookie or API token.
        '403':
          description: >-
            Authenticated, but no policy allows this action on this resource.
            The body carries the action and resource that were evaluated.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorBody'
          description: Not Found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorBody'
          description: Conflict.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorBody'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorBody'
          description: Service Unavailable.
components:
  schemas:
    api.startChartMirrorRequest.Input:
      properties:
        charts:
          items:
            type: string
          nullable: true
          type: array
        versions:
          additionalProperties:
            type: string
          nullable: true
          type: object
      type: object
      x-go-type: backend/internal/api.startChartMirrorRequest
    api.chartMirrorJob:
      properties:
        charts:
          items:
            $ref: '#/components/schemas/api.chartMirrorStatus'
          nullable: true
          type: array
        completed:
          format: int64
          type: integer
        done:
          type: boolean
        failed:
          format: int64
          type: integer
        finishedAt:
          format: date-time
          type: string
        id:
          type: string
        registry:
          type: string
        registryId:
          format: int64
          type: integer
        skipped:
          format: int64
          type: integer
        startedAt:
          format: date-time
          type: string
        total:
          format: int64
          type: integer
      required:
        - charts
        - completed
        - done
        - failed
        - id
        - registry
        - registryId
        - skipped
        - startedAt
        - total
      type: object
      x-go-type: backend/internal/api.chartMirrorJob
    api.ErrorBody:
      properties:
        error:
          type: string
      required:
        - error
      type: object
    api.chartMirrorStatus:
      properties:
        chart:
          type: string
        dest:
          type: string
        error:
          type: string
        key:
          type: string
        source:
          type: string
        status:
          type: string
        version:
          type: string
      required:
        - chart
        - dest
        - key
        - source
        - status
        - version
      type: object
      x-go-type: backend/internal/api.chartMirrorStatus
  securitySchemes:
    sessionCookie:
      description: >-
        The session cookie issued by the OIDC sign-in flow. This is what a
        browser uses.
      in: cookie
      name: k8s-gate-session
      type: apiKey
    bearerToken:
      description: >-
        An API token, minted from your own identity page. A token carries the
        IAM groups you held **when it was minted**, and cannot bypass deletion
        approval — except for guest clusters inside a project that same token
        created.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.