PUT news/update

Updates an existing news entry

Request Information

URI Parameters

None.

Body Parameters

NewsUpdateRequest object contains the fields to be updated

NewsUpdateRequest
NameDescriptionTypeAdditional information
NewsId

integer

None.

Title

string

None.

TitleEs

string

None.

Body

string

None.

BodyEs

string

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "NewsId": 1,
  "Title": "sample string 2",
  "TitleEs": "sample string 3",
  "Body": "sample string 4",
  "BodyEs": "sample string 5",
  "IsActive": true
}

application/xml, text/xml

Sample:
<NewsUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.CommunicationObjects">
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive>
  <Body>sample string 4</Body>
  <BodyEs>sample string 5</BodyEs>
  <Title>sample string 2</Title>
  <TitleEs>sample string 3</TitleEs>
  <NewsId>1</NewsId>
</NewsUpdateRequest>

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

Response Information

Resource Description

NewsUpdateResponse

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.