PUT api/WMS/news/{NewsId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
NewsId

integer

Required

Body Parameters

m_NewsWMSAdd
NameDescriptionTypeAdditional information
NewsTitle

string

None.

NewsContent

string

None.

NewsStartDate

date

None.

NewsEndDate

date

None.

NewsAllLocation

boolean

None.

LocationIdList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "NewsTitle": "sample string 1",
  "NewsContent": "sample string 2",
  "NewsStartDate": "2026-04-07T18:08:57.9858173+07:00",
  "NewsEndDate": "2026-04-07T18:08:57.9858173+07:00",
  "NewsAllLocation": true,
  "LocationIdList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<m_NewsWMSAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.WMS">
  <LocationIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LocationIdList>
  <NewsAllLocation>true</NewsAllLocation>
  <NewsContent>sample string 2</NewsContent>
  <NewsEndDate>2026-04-07T18:08:57.9858173+07:00</NewsEndDate>
  <NewsStartDate>2026-04-07T18:08:57.9858173+07:00</NewsStartDate>
  <NewsTitle>sample string 1</NewsTitle>
</m_NewsWMSAdd>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.