Article
  • 16 Jun 2022
  • 13 Minutes to read
  • Dark
    Light

Article

  • Dark
    Light

Article summary

Article

You need the Manage articles permission to manage articles.

Article JSON Format

Article is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the article.
titlestringTitle of the article.
bodystringContent of the article. You can pass both plaintext and base64 encode text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
customUrlstringCustom url of the article.
categoryIdguidId of the category.
isFeaturedboolWhether to mark this article as Featured to make it appear above the Non-Featured articles.
statusstringAllowed values are "draft", "published".
viewsintegerView count of the article.
createdByIdguidId of the agent who created the article.
createdTimedatetimeTime when the article was created.
modifiedByIdguidId of the agent who modified the article.
modifiedTimetimestampTime when the article was last modified.
similarQuestionsstring []The same question keywords.
tagIdsarrayThe articles list of the tag.
helpfulintegerCounts of the article marked as helpful.
notHelpfulintegerCounts of the article marked as not helpful.

Get the list of Articles

GET kb/articles

  • Parameters:

NameTypeinRequiredDescription
kbIdguidquerynoId of the knowledage base.
keywordsguidquerynoSearch keywords.
categoryIdstringquerynoId of the category.
tagIdguidquerynoId of the tag.
statusstringquerynoAllowed values are "draft", "published".
createdTimedatetimequerynoTime when the article was created.
includestringquerynoAllowed values are "category", "tag".
  • Response:

An array of Article

  • Example

Sample Request:

curl https://api11.comm100.io/v4/kb/articles \ 
    -X 'GET' \ 

Response:

HTTP/1.1 200 OK

{
  "articles": [
      {
          "id": "4fc10466-3900-4d0d-89d8-635afb8a2c78",
          "title": "Sample Article Title",
          "body": "                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>",
          "customUrl": "can-i-customize-the-look-of-my-knowledge-base",
          "categoryId": "8a21934a-7def-4064-a211-3cc5295282f9",
          "isFeatured": false,
          "status": "published",
          "views": 0,
          "createdById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
          "createdTime": "2021-04-09T10:38:47.237Z",
          "modifiedById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
          "modifiedTime": "2021-04-09T10:38:47.237Z",
          "similarQuestions": [
              "null"
          ],
          "tagIds": [
              "e824f542-0187-4aac-a329-9263d6090fe9"
          ],
          "helpful": 5,
          "notHelpful": 1
      }
  ],
  "nextPage": null,
  "previousPage": null,
  "total": 1
} 

Get a single Article

GET kb/articles/{id}

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed values are "category", "tag".
  • Response:

Article

  • Example

Sample Request:

curl https://api11.comm100.io/v4/kb/articles/4fc10466-3900-4d0d-89d8-635afb8a2c78 \ 
    -X 'GET' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "4fc10466-3900-4d0d-89d8-635afb8a2c78",
  "title": "Sample Article Title",
  "body": "                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>",
  "customUrl": "can-i-customize-the-look-of-my-knowledge-base",
  "categoryId": "8a21934a-7def-4064-a211-3cc5295282f9",
  "isFeatured": false,
  "status": "published",
  "views": 0,
  "createdById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "createdTime": "2021-04-09T10:38:47.237Z",
  "modifiedById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "modifiedTime": "2021-04-09T10:38:47.237Z",
  "similarQuestions": [
      "null"
  ],
  "tagIds": [
      "e824f542-0187-4aac-a329-9263d6090fe9"
  ],
  "helpful": 5,
  "notHelpful": 1
} 

Create a new Article

POST kb/articles

  • Parameters:

NameTypeinRequiredDescription
titlestringbodyyesTitle of the article.
bodystringbodynoContent of the article. You can pass both plaintext and base64 encode text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
customUrlstringbodynoCustom url of the article.
categoryIdguidbodyyesId of the category.
isFeaturedboolbodynoWhether to mark this article as Featured to make it appear above the Non-Featured articles.
statusstringbodyyesAllowed values are "draft", "published".
viewsintegerbodynoView count of the article.
createdByIdguidbodynoId of the agent who created the article.
modifiedByIdguidbodynoId of the agent who modified the article.
similarQuestionsstring []bodynoThe same question keywords.
tagIdsarraybodynoThe articles list of the tag.
  • Response:

Article

  • Example

Sample Request:

curl https://api11.comm100.io/v4/kb/articles \ 
    -X 'POST' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"title":"Sample Article Title","body":"                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>","customUrl":"can-i-customize-the-look-of-my-knowledge-base","categoryId":"8a21934a-7def-4064-a211-3cc5295282f9","isFeatured":false,"status":"published","views":0,"createdById":"21b5d834-b98b-48ba-ae45-0d1316cb382f","modifiedById":"21b5d834-b98b-48ba-ae45-0d1316cb382f","similarQuestions":["null"]}' 

Response:

HTTP/1.1 201 Created

{
  "id": "4fc10466-3900-4d0d-89d8-635afb8a2c78",
  "title": "Sample Article Title",
  "body": "                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>",
  "customUrl": "can-i-customize-the-look-of-my-knowledge-base",
  "categoryId": "8a21934a-7def-4064-a211-3cc5295282f9",
  "isFeatured": false,
  "status": "published",
  "views": 0,
  "createdById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "createdTime": "2021-04-09T10:38:47.237Z",
  "modifiedById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "modifiedTime": "2021-04-09T10:38:47.237Z",
  "similarQuestions": [
      "null"
  ],
  "tagIds": [
      "e824f542-0187-4aac-a329-9263d6090fe9"
  ],
  "helpful": 5,
  "notHelpful": 1
} 

Update the Article

PUT kb/articles/{id}

  • Parameters:

NameTypeinRequiredDescription
titlestringbodyyesTitle of the article.
bodystringbodynoContent of the article. You can pass both plaintext and base64 encode text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
customUrlstringbodynoCustom url of the article.
categoryIdguidbodyyesId of the category.
isFeaturedboolbodynoWhether to mark this article as Featured to make it appear above the Non-Featured articles.
statusstringbodyyesAllowed values are "draft", "published".
viewsintegerbodynoView count of the article.
createdByIdguidbodynoId of the agent who created the article.
modifiedByIdguidbodynoId of the agent who modified the article.
similarQuestionsstring []bodynoThe same question keywords.
tagIdsarraybodynoThe articles list of the tag.
  • Response:

Article

  • Example

Sample Request:

curl https://api11.comm100.io/v4/kb/articles/4fc10466-3900-4d0d-89d8-635afb8a2c78 \ 
    -X 'PUT' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"title":"Sample Article Title","body":"                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>","customUrl":"can-i-customize-the-look-of-my-knowledge-base","categoryId":"8a21934a-7def-4064-a211-3cc5295282f9","isFeatured":false,"status":"published","views":0,"createdById":"21b5d834-b98b-48ba-ae45-0d1316cb382f","modifiedById":"21b5d834-b98b-48ba-ae45-0d1316cb382f","similarQuestions":["null"]}' 

Response:

HTTP/1.1 200 OK

{
  "id": "4fc10466-3900-4d0d-89d8-635afb8a2c78",
  "title": "Sample Article Title",
  "body": "                    <p>\n?                        Setting up your knowledge base starts with creating articles. Building a repository of articles is simple by using our WYSIWYG editor. You can also organize your knowledge base articles by category and tag, so that they are easy to find and intuitive to use. Follow the steps below to start.\n?                    </p>\n?                    <h4>Step by Step Instructions</h4>\n?                    <ol>\n?                        <li>\n?                            <a target="\&quot;_blank\&quot;">Log into</a> your Comm100 account.\n?                        </li>\n?                        <li>\n?                            Click <strong>Articles</strong> from the left menu list under the Knowledge Base product.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/kb-articles.png\&quot;" alt="\&quot;knowledge">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click the <strong>New Article</strong> button on the page.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/new-article.png\&quot;" alt="\&quot;New">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Input the article title and mark it as <strong>Featured</strong> when you see appropriate by clicking the <strong>Star</strong> icon in the <strong>Title</strong> box. (Featured articles appear above the non-featured ones on your knowledge base pages.)\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/article-content.png\&quot;" alt="\&quot;Article">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Draft your article content in our WYSIWYG HTML editor. If you have drafted the source code of the article elsewhere, you can click the <strong>Source Code</strong> icon at the end of the tool bar to simply paste the code in the editor.\n?                        </li>\n?                        <li>\n?                            Select a <strong>Category</strong> that the article should fall under, and assign <strong>Tags</strong> for the article.\n?                            <p>\n?                                <img src="\&quot;/kb/resources/images/categorize-tag-publish.png\&quot;" alt="\&quot;categorize">\n?                            </p>\n?                        </li>\n?                        <li>\n?                            Click <strong>Preview</strong> to see how it looks like to your customers on your knowledge base.\n?                        </li>\n?                        <li>\n?                            Once the article is ready, change the article status to <strong>Published</strong>, and then hit <strong>Save</strong>.\n?                            <br>\n?                            <strong>Note:</strong> The default status of every article is <strong>Draft</strong>. To make an article visible on your knowledge base, you need to change its status to <strong>Published</strong>.\n?                        </li>\n?                    </ol>\n?                    <p>Now that the article has been published, your customers can view, and leave helpful or not helpful ratings if you allow them to do so. </p>",
  "customUrl": "can-i-customize-the-look-of-my-knowledge-base",
  "categoryId": "8a21934a-7def-4064-a211-3cc5295282f9",
  "isFeatured": false,
  "status": "published",
  "views": 0,
  "createdById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "createdTime": "2021-04-09T10:38:47.237Z",
  "modifiedById": "21b5d834-b98b-48ba-ae45-0d1316cb382f",
  "modifiedTime": "2021-04-09T10:38:47.237Z",
  "similarQuestions": [
      "null"
  ],
  "tagIds": [
      "e824f542-0187-4aac-a329-9263d6090fe9"
  ],
  "helpful": 5,
  "notHelpful": 1
} 

Remove the Article

DELETE kb/articles/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/kb/articles/4fc10466-3900-4d0d-89d8-635afb8a2c78 \ 
    -X 'DELETE' \ 

Response:

HTTP/1.1 204 No Content


Was this article helpful?

What's Next