POST api/DMS/UpdateTopic?topicId={topicId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
topicId

integer

Required

Body Parameters

Topic
NameDescriptionTypeAdditional information
Id

integer

None.

TopicName

string

None.

Content

string

None.

SectionId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TopicName": "sample string 2",
  "Content": "sample string 3",
  "SectionId": 4
}

application/xml, text/xml

Sample:
<Topic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models">
  <Content>sample string 3</Content>
  <Id>1</Id>
  <SectionId>4</SectionId>
  <TopicName>sample string 2</TopicName>
</Topic>

multipart/form-data

Sample:
<Topic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models"><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic>

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 'Topic'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml, multipart/form-data

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>