PUT 17.0/database/news/{id}

Description

Update existing News

URI Parameters

Name Description Type Additional information
id

integer

Required

Name Description Type Additional information
ID

integer

None.

NewsDate

date

None.

Subject

string

String length: inclusive between 0 and 255

Body

string

None.

WebPage

string

String length: inclusive between 0 and 50

SiteID

integer

None.

Pictures

string

None.

UploadPictures

byte

None.

Attachments

string

None.

UpdatedDate

date

None.

InActive

byte

None.

application/json, text/json

Sample:
{
  "id": 1,
  "newsDate": "2025-01-09T20:48",
  "subject": "sample string 1",
  "body": "sample string 2",
  "webPage": "sample string 3",
  "siteID": 1,
  "pictures": "sample string 4",
  "uploadPictures": 64,
  "attachments": "sample string 5",
  "updatedDate": "2025-01-09T20:48",
  "inActive": 64
}

application/xml, text/xml

Sample:
<NewsUpdate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <NewsDate>2025-01-09T20:48:21.9133297+00:00</NewsDate>
  <Subject>sample string 1</Subject>
  <Body>sample string 2</Body>
  <WebPage>sample string 3</WebPage>
  <SiteID>1</SiteID>
  <Pictures>sample string 4</Pictures>
  <UploadPictures>64</UploadPictures>
  <Attachments>sample string 5</Attachments>
  <UpdatedDate>2025-01-09T20:48:21.9133297+00:00</UpdatedDate>
  <InActive>64</InActive>
</NewsUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Name Description Type Additional information
ID

integer

None.

NewsDate

date

None.

Subject

string

String length: inclusive between 0 and 255

Body

string

None.

WebPage

string

String length: inclusive between 0 and 50

SiteID

integer

None.

Pictures

string

None.

UploadPictures

byte

None.

Attachments

string

None.

UpdatedDate

date

None.

InActive

byte

None.

application/json, text/json

Sample:
{
  "id": 1,
  "newsDate": "2025-01-09T20:48",
  "subject": "sample string 3",
  "body": "sample string 4",
  "webPage": "sample string 5",
  "siteID": 6,
  "pictures": "sample string 7",
  "uploadPictures": 64,
  "attachments": "sample string 9",
  "updatedDate": "2025-01-09T20:48",
  "inActive": 64
}

application/xml, text/xml

Sample:
<News xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <NewsDate>2025-01-09T20:48:21.9133297+00:00</NewsDate>
  <Subject>sample string 3</Subject>
  <Body>sample string 4</Body>
  <WebPage>sample string 5</WebPage>
  <SiteID>6</SiteID>
  <Pictures>sample string 7</Pictures>
  <UploadPictures>64</UploadPictures>
  <Attachments>sample string 9</Attachments>
  <UpdatedDate>2025-01-09T20:48:21.9133297+00:00</UpdatedDate>
  <InActive>64</InActive>
</News>