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.
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Path parameters
help_centerstringrequiredId of the help center, starting with hc_, such as hc_01jx2m8k4t. Find it with GET /help-centers.
Query parameters
pathstringThe page's path, such as /articles/install or /fr.
Maximum length: 2048
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
locationstringWhere the page sends the reader instead, for a redirect. Left out otherwise.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
statusintegerrequiredThe HTTP status the page answers with, such as 200, 302 or 404.
Format: int64
templatestringThe theme template the page renders, such as article. Left out for a redirect.
variablesobjectThe variables the template reads, by name. HTML and times are one-key objects, {"$html": ...} and {"$time": ...}.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.