POST api/Admin/UpdateArticle

Request Information

URI Parameters

None.

Body Parameters

Article
NameDescriptionTypeAdditional information
ArticleID

integer

None.

Heading

string

None.

ArticleImageUrl

string

None.

ImageOriginalName

string

None.

ArticleDescription

string

None.

ReadCount

integer

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

StatusID

integer

None.

CreatedOn

date

None.

ModifiedOn

date

None.

IsDelete

boolean

None.

CreatedSince

string

None.

StatusName

string

None.

ArticleText

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ArticleID": 1,
  "Heading": "sample string 2",
  "ArticleImageUrl": "sample string 3",
  "ImageOriginalName": "sample string 4",
  "ArticleDescription": "sample string 5",
  "ReadCount": 1,
  "CreatedBy": 6,
  "ModifiedBy": 1,
  "StatusID": 7,
  "CreatedOn": "2022-01-24T07:45:15.7513487+00:00",
  "ModifiedOn": "2022-01-24T07:45:15.7513487+00:00",
  "IsDelete": true,
  "CreatedSince": "sample string 10",
  "StatusName": "sample string 11",
  "ArticleText": "sample string 12"
}

application/xml, text/xml

Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.Models">
  <ArticleDescription>sample string 5</ArticleDescription>
  <ArticleID>1</ArticleID>
  <ArticleImageUrl>sample string 3</ArticleImageUrl>
  <ArticleText>sample string 12</ArticleText>
  <CreatedBy>6</CreatedBy>
  <CreatedOn>2022-01-24T07:45:15.7513487+00:00</CreatedOn>
  <CreatedSince>sample string 10</CreatedSince>
  <Heading>sample string 2</Heading>
  <ImageOriginalName>sample string 4</ImageOriginalName>
  <IsDelete>true</IsDelete>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedOn>2022-01-24T07:45:15.7513487+00:00</ModifiedOn>
  <ReadCount>1</ReadCount>
  <StatusID>7</StatusID>
  <StatusName>sample string 11</StatusName>
</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

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.