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

# Update publish settings for a marketplace item

> Patch shareType, isContentVisible, and allowEditableReferences on an existing PublishedItem. Admin/Superadmin only and the caller must be the original publisher (Superadmin override).



## OpenAPI

````yaml /api-reference/openapi.yaml patch /api/marketplace/{id}
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/marketplace/{id}:
    patch:
      tags:
        - Marketplace
      summary: Update publish settings for a marketplace item
      description: >-
        Patch shareType, isContentVisible, and allowEditableReferences on an
        existing PublishedItem. Admin/Superadmin only and the caller must be the
        original publisher (Superadmin override).
      operationId: update_publish_settings
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePublishSettingsRequest'
      responses:
        '200':
          description: Publish settings updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceUpdatePublishSettingsResponse'
        '403':
          description: Only Admin/Superadmin or not authorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
        '404':
          description: Marketplace item not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UpdatePublishSettingsRequest:
      type: object
      properties:
        shareType:
          type: string
          enum:
            - reference
            - copy
          description: >-
            `reference` (acquirer gets a live link) or `copy` (acquirer gets an
            editable duplicate).
        isContentVisible:
          type: boolean
          description: >-
            When false, marketplace browsers see metadata only — body is hidden
            until acquired.
        allowEditableReferences:
          type: boolean
          description: >-
            For `reference` listings on organization scope, allow acquirers to
            edit the linked item; only applied when shareType stays `reference`.
      additionalProperties: true
      example:
        shareType: reference
        isContentVisible: true
        allowEditableReferences: true
    MarketplaceUpdatePublishSettingsResponse:
      type: object
      description: >-
        Returned after a publish-settings PATCH. Wraps the updated marketplace
        item.
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: object
          properties:
            marketplaceItem:
              type: object
              description: Updated PublishedItem document.
              additionalProperties: true
          required:
            - marketplaceItem
          additionalProperties: true
      required:
        - success
        - data
      additionalProperties: true
      example:
        success: true
        data:
          marketplaceItem:
            _id: 64d2f9c5e8a1d4e001a0b1c2
            itemType: prompt
            itemId: 64a1b2c3d4e5f6001234567a
            publishedBy: 64a1b2c3d4e5f60012345679
            scope: marketplace
            shareType: reference
            allowEditableReferences: false
            isContentVisible: true
            name: Maple Court — Tour Confirm
            status: active
            usageCount: 12
    MarketplaceErrorResponse:
      type: object
      description: Generic error envelope returned by Marketplace endpoints.
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Marketplace item not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````