Moonborn — API · marketplace
Unpublish a listing (soft; reviews + license commitments are retained)
Soft-unpublish: status flips to `unpublished` and the listing is excluded from discovery. Existing installs continue to function. Use moderation `removed` to hard-revoke distribution.
DELETE/v1/marketplace/listings/{id}scope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Listing id (e.g. `lst_*`). |
Responses
204Unpublished (no content)
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
403Caller is not the listing owner
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
404Listing not found
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X DELETE https://api.moonborn.co/v1/marketplace/listings/<id> \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.marketplace.unpublishListing({
id: '<id>',
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.marketplace.unpublish_listing(
id="<id>",
)