Skip to main content
POST
/
api
/
marketplace
/
publish
Publish an item to organization and/or marketplace
curl --request POST \
  --url https://your-instance.example.com/api/marketplace/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "itemType": "prompt",
  "itemId": "<string>",
  "scopes": {
    "organization": {
      "enabled": true,
      "shareType": "reference",
      "isContentVisible": true,
      "allowEditableReferences": true
    },
    "marketplace": {
      "enabled": true,
      "shareType": "reference",
      "isContentVisible": true,
      "allowEditableReferences": true
    }
  },
  "metadata": {
    "name": "<string>",
    "description": "<string>",
    "usageInformation": "<string>"
  }
}
'
{}

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
Available options:
prompt,
template
itemId
string
required
scopes
object
required
metadata
object

Response

Item published

Generic response envelope. Endpoint-specific fields are intentionally open.