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

# Update a marketplace plugin

> Resolve the target, pip upgrade, re-patch the manifest, reload, and upsert
attribution — with the same pre-flights as install (see
:meth:`Installer.update`).



## OpenAPI

````yaml /openapi.json post /api/marketplace/update
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/marketplace/update:
    post:
      tags:
        - marketplace
      summary: Update a marketplace plugin
      description: >-
        Resolve the target, pip upgrade, re-patch the manifest, reload, and
        upsert

        attribution — with the same pre-flights as install (see

        :meth:`Installer.update`).
      operationId: post_api_marketplace_update
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarketplaceUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal server error.
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
        '503':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ReloadingError'
                  - $ref: '#/components/schemas/Error'
          description: >-
            The server is applying a config reload, or a dependency this route
            needs is temporarily unavailable; retry shortly.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying; carried by the reloading
                answer.
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MarketplaceUpdate:
      description: Update an installed plugin to a newer (or named) version.
      properties:
        ref:
          title: Ref
          type: string
        version:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Version
      required:
        - ref
      title: MarketplaceUpdate
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
    ReloadingError:
      properties:
        error:
          const: reloading — the server is applying a config reload; retry shortly
          type: string
        reloading:
          const: true
          type: boolean
      required:
        - error
        - reloading
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````