Skip to content
dimmiDocs

Help center

Build a help center page for a theme preview

Builds one page of the help center with its live content, as a theme would render it, without rendering it. The dimmi CLI renders the page in the theme on the developer's computer. Returns the page's status, its redirect when it has one, and the template and variables it renders.

GET/api/v1/help-centers/{help_center}/theme-preview

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

help_centerstringrequired

Id of the help center, starting with hc_, such as hc_01jx2m8k4t. Find it with GET /help-centers.

Query parameters

pathstring

The page's path, such as /articles/install or /fr.

Maximum length: 2048

Response 200

OK
dataobjectrequired
Show child attributes
locationstring

Where the page sends the reader instead, for a redirect. Left out otherwise.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

statusintegerrequired

The HTTP status the page answers with, such as 200, 302 or 404.

Format: int64

templatestring

The theme template the page renders, such as article. Left out for a redirect.

variablesobject

The variables the template reads, by name. HTML and times are one-key objects, {"$html": ...} and {"$time": ...}.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.