Import to existing project

Import to existing project

Imports content into an existing project. For the list of supported formats, see importFormat.

Path Parameters
  • project-id
    string
    required

    The ID of the project to import into.

Query Parameters
  • format
    string enum
    required

    Specifies how the input file is passed.

    • url
    • base64
Body
application/json
importFormat
string enum

Format of the imported content. AutoDocs imports an OpenAPI specification and generates API reference documentation from it.

  • ProjectBackup
  • Word
  • Pdf
  • Odt
  • Rtf
inputFileContent
string

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.

inputFileName
string

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.

inputFileUrl
string

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.

newProjectId
string

The ID of a new project where to import content. Either newProjectId or newProjectName should be specified.

newProjectName
string

The name of a new project where to import content. Either newProjectId or newProjectName should be specified.

newProjectLanguageFourLetterCode
string

An ISO 639 four-letter language code of a new project where to import content. If not specified, the en-US code is used.

options
object

Additional import parameters.

Responses
POST/projects/{project-id}/import

{
  "taskKey": "f8de60eb4ad8757c5a2b533afae6251aa"
}