Skip to main content
POST
Publish an item to organization and/or marketplace

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
itemType
enum<string>
required

What's being published: prompt or template.

Available options:
prompt,
template
itemId
string
required

Mongo ObjectId of the source prompt or template the caller owns and wants to publish.

scopes
object
required

Per-scope publish settings (organization, marketplace) — each carries enabled, shareType, isContentVisible, allowEditableReferences.

metadata
object

Optional display overrides for the listing; when omitted the underlying item's own name/description are used.

Response

Item published

Returned after POST /api/marketplace/publish. published[] contains one summary per enabled scope.

success
enum<boolean>
required
Available options:
true
data
object
required