Skip to main content
PATCH
Set the blog and changelog paths

Authorizations

Authorization
string
header
required

Send your API key in the Authorization header as Bearer API_KEY. Account API keys work in every workspace you belong to: send X-Notra-Organization-Id with the workspace id or slug to choose one. Workspace endpoints require it when you belong to more than one workspace; GET /v1/me/workspaces works without it. Organization keys only accept their own workspace there.

Path Parameters

siteId
string
required
Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]{1,100}$
Example:

"site_8f2kq1"

Body

application/json
blog
string

Path of the blog, like /blog. Omit to turn the blog off.

Example:

"/blog"

changelog
string

Path of the changelog, like /changelog. Omit to turn the changelog off.

Example:

"/changelog"

Response

Sections saved as an unpublished change

site
object
required
sections
object
required

The sections blog.json sets with unpublished changes applied. They take over from the dashboard setting once a production build of them goes live.

liveSections
object
required

The paths the live site serves now.

hasUnpublishedChanges
boolean
required