unpublishObjectType

View as Markdown

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

NameTypeRequiredDescription
objectTypeIdintegerYesThe object type ID (from listObjectTypes)
reasonstringNoOptional operator-supplied reason captured in the audit log.