High-level operations on projects, like import and backup.
Imports a Swagger/OpenAPI definition from a URL or a base64-encoded file into a new project. This is an asynchronous operation.
- actionconst:importrequired
The action to perform.
The API definition and new project details.
Defines the source and destination for an API spec import to a new project.
The import format.
The ID for the new project. Either this or newProjectName must be provided.
The name for the new project. Either this or newProjectId must be provided.
The language code for the new project, e.g., 'en-US'.
curl https://your-portal.clickhelp.co/api/v1/projects \
--request POST \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"importFormat": "AutoDocs",
"newProjectId": "",
"newProjectName": "",
"newProjectLanguageFourLetterCode": "en-US",
"inputFileUrl": "",
"options": {
"__type": "AutoDocsImportOptions",
"splitModeType": "GroupMethods",
"updatedMountPointTocNodeId": ""
}
}'
{
"taskKey": "…"
}Returns information about a single project or publication. The parentId field will be null for projects and will contain the project ID for publications.
- publicationIdstringrequired
The ID of the project or publication.
curl https://your-portal.clickhelp.co/api/v1/projects/ \
--header 'Authorization: Basic username:password'
{
"id": "…",
"title": "…",
"createdOn": "2026-01-23T22:10:04.180Z",
"visibility": "Private",
"parentId": "…",
"fullUrl": "https://example.com",
"url": "…",
"parentUrl": "…"
}Performs an action on a project or publication, like creating a backup or exporting. The exact behavior is determined by the 'action' query parameter.
- publicationIdstringrequired
The ID of the project or publication.
- actionstring enumrequired
The action to perform.
- download
- export
- publish
- import
The request body, dependent on the action.
The properties for an export request.
Schema for creating a new publication.
The properties to update for a publication.
Defines the source for an API spec import to an existing project.
curl https://your-portal.clickhelp.co/api/v1/projects/ \
--request POST \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"outputFileName": ""
}'
{
"taskKey": "…"
}