Marketplace
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).
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/marketplace/string" \ -H "Content-Type: application/json" \ -d '{ "shareType": "reference", "isContentVisible": true, "allowEditableReferences": true }'{ "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 } }}