Perform action with project or publication
Performs an action on the project or publication (export, download, publish, or import).
- action=publish: Creates a new online publication. Required request body fields: pubId, pubName.
- action=publish: Updates an existing online publication. Required request body fields: updatedPubId, pubName, updateMode.
- action=import: Imports new content into an existing project. Requires the format query parameter. For format=base64 required request body fields: importFormat, options, inputFileContent, inputFileName. For format=url required request body fields: importFormat, options, inputFileUrl.
- action=export: Exports a project or publication to one of the supported formats. Required request body fields: format, outputFileName.
- action=download: Creates a backup of a project in the specified location in your portal Storage with the specified file name. Required request body fields: outputFileName.
- idstringrequired
The ID of the project or publication.
- actionstring enumrequired
Action to perform: export, download, publish, or import.
- export
- download
- publish
- import
- formatstring enum
Specifies how the import data is provided. Required when action=import. Can be url or base64.
- url
- base64
A combined request body containing all possible parameters for project and publication actions. Fields are used depending on the specific operation (e.g., 'projectName' for creating, 'outputFileName' for backups).
The name of the new project. Required when action=create.
The ID (URL slug) of the new project. If not specified, it will be generated from the project name. Used when action=create.
The source type for creating the project: Empty (default), Template, or Copy. Used when action=create.
- Empty
- Template
- Copy
The ID of an existing project to use as a source. Required when sourceType is Template (use 'minimalist-template', 'api-documentation-template', 'coffee-break-template', 'colorize-template', 'mountain-peak-template' or 'stardust-template') or Copy (use your existing project ID). Used when action=create.
The four-letter language code for the new project (e.g., 'en-US'). If not specified, the portal's default language will be used. Used when action=create.
The ID of the publication to create.
The name of the publication to create.
Whether to publish only topics in the Ready status.
An array of strings containing Output Tags to use.
The target publication visibility. Specify Public, Restricted or Private.
- Public
- Restricted
- Private
An array of strings containing IDs of the TOC nodes to publish. If not specified, the entire project is published.
The ID of the publication to update.
Defines which update mode to choose for the update. Specify FullReplace or Partial.
- FullReplace
- Partial
Specifies whether to update CSS style files.
Specifies whether to update JavaScript files.
One of the allowed case-sensitive export formats.
- WebHelp
- PureHtml
- Markdown
- Chm
The full name of the output file. If the output file is written in ClickHelp File Storage (default), this should be a full file name, including the file path that starts with Storage/. If the output is written to an FTP server, this should be an FTP file name relative to the FTP directory in which the file is written.
Storage/export-files/deep-space-1.0-docs.zipFor printed formats only. The full name of the Export Preset to be used.
An object specifying FTP server connection settings. If the value is null, the output file will be written to your ClickHelp portal File Storage.
Import format.
- Word
- Rtf
- Epub
- Odt
- Html
- Markdown
- ProjectBackup
- Docfx
- AutoDocs
Base64-encoded content of the file to import. Required if base64 is selected for the format query parameter. If url format is selected, this parameter is ignored.
The name of the file with an extension. Required if base64 is selected for the format query parameter. If url format is selected, this parameter is ignored.
The URL of the file. It can be a public URL (no authentication required) or a path to a file in ClickHelp Storage. Required if url is selected for the format query parameter. If base64 format is selected, this parameter is ignored.
The domain of the site to assign a publication to.
hedron-partners.clickhelp.comAdditional import parameters.
The ID of a new project where to import a definition. Either newProjectId or newProjectName should be specified.
The name of a new project where to import a definition. Either newProjectId or newProjectName should be specified.
An ISO 639 four-letter language code of a new project where to import a definition. If not specified, the en-US code is used.
{
"taskKey": "f8de60eb4ad8757c5a2b533afae6251aa"
}