PUT api/Articles/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Article
NameDescriptionTypeAdditional information
Id

integer

None.

Author

string

None.

Subject

string

None.

Timestamp

date

None.

Content

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Author": "sample string 2",
  "Subject": "sample string 3",
  "Timestamp": "2024-10-22T03:42:18.866488+02:00",
  "Content": "sample string 5"
}

application/xml, text/xml

Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.Models">
  <Author>sample string 2</Author>
  <Content>sample string 5</Content>
  <Id>1</Id>
  <Subject>sample string 3</Subject>
  <Timestamp>2024-10-22T03:42:18.866488+02:00</Timestamp>
</Article>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Article
NameDescriptionTypeAdditional information
Id

integer

None.

Author

string

None.

Subject

string

None.

Timestamp

date

None.

Content

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Author": "sample string 2",
  "Subject": "sample string 3",
  "Timestamp": "2024-10-22T03:42:19.0539793+02:00",
  "Content": "sample string 5"
}

application/xml, text/xml

Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.Models">
  <Author>sample string 2</Author>
  <Content>sample string 5</Content>
  <Id>1</Id>
  <Subject>sample string 3</Subject>
  <Timestamp>2024-10-22T03:42:19.0539793+02:00</Timestamp>
</Article>