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

# Publish a domain

> Publish or unpublish a custom domain once its DNS records are connected.

Turn the custom domain on or off. Publishing requires every DNS record to be connected. You need the domains tool.

**projectId** `string` *required*

The newsroom id.

**published** `boolean` *required*

True publishes the domain. False takes it offline.

**domain** `object`

hostname, status, published, dnsRecords, and lastCheckedAt.

**free** `object`

The free domain, when one exists: code, published, and redirect.

**message** `string`

Whether the custom domain was published or unpublished.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.