> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer-test.atomicwork.com/llms.txt.
> For full documentation content, see https://developer-test.atomicwork.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer-test.atomicwork.com/_mcp/server.

# unpublishObjectType

Hide a PUBLISHED object type from discovery.

Flips `publishStatus` from `PUBLISHED` to `UNPUBLISHED`. The type is removed from search
indices asynchronously (bulk un-index triggered post-commit). Instance records are preserved
in the database; reads still work, but instance create/update/patch endpoints reject on
unpublished types.

## Parameters

| Name           | Type    | Required | Description                                                  |
| -------------- | ------- | -------- | ------------------------------------------------------------ |
| `objectTypeId` | integer | Yes      | The object type ID (from listObjectTypes)                    |
| `reason`       | string  | No       | Optional operator-supplied reason captured in the audit log. |