Open app
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
FieldTypeDescription
idreqstringListing id (e.g. `lst_*`).

Responses

204Unpublished (no content)
401Unauthenticated
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
403Caller is not the listing owner
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
404Listing not found
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

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>",
)