> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herodotus.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Unpublish Module

> Remove an HDP module from the marketplace

# 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:

```bash theme={null}
X-API-KEY: your-herodotus-cloud-api-key-here
```

## Path Parameters

| Parameter | Type   | Description                 |
| --------- | ------ | --------------------------- |
| id        | string | The unique module ID (ULID) |

## Example Request

```bash theme={null}
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)

```json theme={null}
{
  "message": "Module unpublished from marketplace"
}
```

### Not Found Response (404)

```json theme={null}
{
  "error": "Module not found"
}
```

### Unauthorized Response (401)

```json theme={null}
{
  "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](./publish-module) endpoint to republish a module
