Operations related to Table of Contents (TOC) nodes.
- GET/projects/{projectId}/toc/nodes
- POST/projects/{projectId}/toc/nodes
- DELETE/projects/{projectId}/toc/nodes
- GET/projects/{projectId}/toc/nodes/{tocNodeId}
- PATCH/projects/{projectId}/toc/nodes/{tocNodeId}
- DELETE/projects/{projectId}/toc/nodes/{tocNodeId}
- GET/projects/{projectId}/toc/nodes/{tocNodeId}/children
Returns information on all TOC nodes from a project.
- projectIdstringrequired
The ID of the project.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes \
--header 'Authorization: Basic username:password'
[
{
"id": "…",
"caption": "…",
"parentId": "…",
"topicId": "…",
"ordinalNo": 1,
"isShowInToc": true,
"isAutoDocsMountPoint": true
}
]Creates a new folder in the Table of Contents of a project.
- projectIdstringrequired
The ID of the project.
The folder to create.
The properties for a new TOC folder.
The folder name.
The unique identifier of the parent TOC node. null or omitted to create on the root level.
The position of the node. Appended to the end if omitted.
Whether to show the folder in the TOC in publications.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes \
--request POST \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"caption": "",
"parentId": "",
"ordinalNo": 1,
"isShowInToc": false
}'
{
"id": "…",
"caption": "…",
"parentId": "…",
"topicId": "…",
"ordinalNo": 1,
"isShowInToc": true,
"isAutoDocsMountPoint": true
}Deletes multiple TOC nodes along with the linked topics from a project.
- projectIdstringrequired
The ID of the project.
A list of TOC node IDs to delete.
Schema for deleting multiple TOC nodes.
- 204
The TOC nodes were deleted successfully.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes \
--request DELETE \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"tocNodeIds": [
""
]
}'
Returns information on a single TOC node.
- projectIdstringrequired
The ID of the project.
- tocNodeIdstringrequired
The ID of the TOC node.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes/ \
--header 'Authorization: Basic username:password'
{
"id": "…",
"caption": "…",
"parentId": "…",
"topicId": "…",
"ordinalNo": 1,
"isShowInToc": true,
"isAutoDocsMountPoint": true
}Updates TOC node metadata.
- projectIdstringrequired
The ID of the project.
- tocNodeIdstringrequired
The ID of the TOC node.
The properties to update.
The properties to update for a TOC node.
The new TOC node caption.
The new unique identifier of the parent TOC node.
The new position of the node in the TOC.
Whether to show the folder in the TOC in publications.
A comma-separated list of fields to update. If a field is not in this list, it will not be updated.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes/ \
--request PATCH \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"caption": "",
"parentId": "",
"ordinalNo": 1,
"isShowInToc": true,
"updatedFields": ""
}'
{
"id": "…",
"caption": "…",
"parentId": "…",
"topicId": "…",
"ordinalNo": 1,
"isShowInToc": true,
"isAutoDocsMountPoint": true
}Deletes a single TOC node along with the linked topic from a project.
- projectIdstringrequired
The ID of the project.
- tocNodeIdstringrequired
The ID of the TOC node.
- 204
The TOC node was successfully deleted.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes/ \
--request DELETE \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: text/plain;charset=UTF-8' \
--data ""
Returns a list of children nodes of a specific TOC node.
- projectIdstringrequired
The ID of the project.
- tocNodeIdstringrequired
The ID of the TOC node.
- isRecursivebooleandefault:false
Whether to get all descendant nodes recursively.
curl https://your-portal.clickhelp.co/api/v1/projects//toc/nodes//children \
--header 'Authorization: Basic username:password'
[
{
"id": "…",
"caption": "…",
"parentId": "…",
"topicId": "…",
"ordinalNo": 1,
"isShowInToc": true,
"isAutoDocsMountPoint": true
}
]