Skip to main content

Unpublish Module

Removes an HDP module from the marketplace, making it no longer visible to other users. This endpoint requires authentication.

Endpoint

POST /modules/{id}/unpublish

Authentication

This endpoint requires authentication using an API key:
X-API-KEY: your-herodotus-cloud-api-key-here

Path Parameters

ParameterTypeDescription
idstringThe unique module ID (ULID)

Example Request

curl -X POST https://staging.hdp.api.herodotus.cloud/modules/01JPJ03YJT1A93D6NF56G4GVEQ/unpublish \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: your-herodotus-cloud-api-key-here"

Response

Success Response (200 OK)

{
  "message": "Module unpublished from marketplace"
}

Not Found Response (404)

{
  "error": "Module not found"
}

Unauthorized Response (401)

{
  "error": "Missing Herodotus Cloud X-API-KEY header"
}

Notes

  • Authentication is required for this endpoint
  • Unpublishing a module removes it from the marketplace but does not delete it
  • The module remains accessible via direct ID lookup
  • Use the Publish Module endpoint to republish a module