POST api/Kb_Item/Post

Creates a new knowledge base item.

Request Information

Parameters

NameDescriptionAdditional information
kbItem
The knowledge base item info

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "body": "sample string 1",
  "products": [
    {
      "id": 1
    },
    {
      "id": 1
    },
    {
      "id": 1
    }
  ],
  "title": "sample string 2",
  "is_private": true,
  "brandId": 4
}

application/xml, text/xml

Sample:
<kb_item_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.KnowledgeBase">
  <body>sample string 1</body>
  <brandId>4</brandId>
  <is_private>true</is_private>
  <products xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ticket.Api">
    <d2p1:assoc>
      <d2p1:id>1</d2p1:id>
    </d2p1:assoc>
    <d2p1:assoc>
      <d2p1:id>1</d2p1:id>
    </d2p1:assoc>
    <d2p1:assoc>
      <d2p1:id>1</d2p1:id>
    </d2p1:assoc>
  </products>
  <title>sample string 2</title>
</kb_item_create>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "sub_id": 1,
  "id": 2,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<kb_create_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">
  <errors />
  <is_valid>true</is_valid>
  <id>2</id>
  <sub_id>1</sub_id>
</kb_create_result>