POST api/article/SaveArticle

Request Information

URI Parameters

None.

Body Parameters

Article
NameDescriptionTypeAdditional information
ComponentId

globally unique identifier

None.

ClientId

globally unique identifier

None.

ParentId

globally unique identifier

None.

Header

string

None.

Body

string

None.

Detail

string

None.

InternalNotes

string

None.

ComponentTypeId

ComponentType

None.

Request Formats

application/json, text/json

Sample:
{
  "ComponentId": "6f5149c9-c961-4cf1-a1eb-6895e39af63c",
  "ClientId": "219bc232-d66a-48c2-b122-88376a948c99",
  "ParentId": "0ace02ab-581f-4cc5-8e17-61e1ff3c5217",
  "Header": "sample string 2",
  "Body": "sample string 3",
  "Detail": "sample string 4",
  "InternalNotes": "sample string 5",
  "ComponentTypeId": 0
}

text/html

Sample:
{"ComponentId":"6f5149c9-c961-4cf1-a1eb-6895e39af63c","ClientId":"219bc232-d66a-48c2-b122-88376a948c99","ParentId":"0ace02ab-581f-4cc5-8e17-61e1ff3c5217","Header":"sample string 2","Body":"sample string 3","Detail":"sample string 4","InternalNotes":"sample string 5","ComponentTypeId":0}

application/xml, text/xml

Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KnowledgeBase">
  <Body>sample string 3</Body>
  <ClientId>219bc232-d66a-48c2-b122-88376a948c99</ClientId>
  <ComponentId>6f5149c9-c961-4cf1-a1eb-6895e39af63c</ComponentId>
  <ComponentTypeId>Not_Set</ComponentTypeId>
  <Detail>sample string 4</Detail>
  <Header>sample string 2</Header>
  <InternalNotes>sample string 5</InternalNotes>
  <ParentId>0ace02ab-581f-4cc5-8e17-61e1ff3c5217</ParentId>
</Article>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Article'.

Response Information

Resource Description

Article
NameDescriptionTypeAdditional information
ComponentId

globally unique identifier

None.

ClientId

globally unique identifier

None.

ParentId

globally unique identifier

None.

Header

string

None.

Body

string

None.

Detail

string

None.

InternalNotes

string

None.

ComponentTypeId

ComponentType

None.

Response Formats

application/json, text/json

Sample:
{
  "ComponentId": "d11d5079-6967-44ef-a86d-bb493ad12d89",
  "ClientId": "0c341f0e-84a6-498b-b44d-b06b9e3654a8",
  "ParentId": "f464cf2b-e69a-48f5-ba11-584b4f3ec27e",
  "Header": "sample string 2",
  "Body": "sample string 3",
  "Detail": "sample string 4",
  "InternalNotes": "sample string 5",
  "ComponentTypeId": 0
}

text/html

Sample:
{"ComponentId":"d11d5079-6967-44ef-a86d-bb493ad12d89","ClientId":"0c341f0e-84a6-498b-b44d-b06b9e3654a8","ParentId":"f464cf2b-e69a-48f5-ba11-584b4f3ec27e","Header":"sample string 2","Body":"sample string 3","Detail":"sample string 4","InternalNotes":"sample string 5","ComponentTypeId":0}

application/xml, text/xml

Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KnowledgeBase">
  <Body>sample string 3</Body>
  <ClientId>0c341f0e-84a6-498b-b44d-b06b9e3654a8</ClientId>
  <ComponentId>d11d5079-6967-44ef-a86d-bb493ad12d89</ComponentId>
  <ComponentTypeId>Not_Set</ComponentTypeId>
  <Detail>sample string 4</Detail>
  <Header>sample string 2</Header>
  <InternalNotes>sample string 5</InternalNotes>
  <ParentId>f464cf2b-e69a-48f5-ba11-584b4f3ec27e</ParentId>
</Article>