POST api/NewsLetter

Request Information

URI Parameters

None.

Body Parameters

NewsLetter
NameDescriptionTypeAdditional information
Subject

string

None.

Body

string

None.

Attachment

string

None.

Date

date

None.

CreatedDate

date

None.

CreatedBy

string

Max length: 256

UpdatedDate

date

None.

UpdatedBy

string

Max length: 256

DeletedDate

date

None.

DeletedBy

string

Max length: 256

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Subject": "sample string 1",
  "Body": "sample string 2",
  "Attachment": "sample string 3",
  "Date": "2024-03-29T01:40:26.1220651+03:30",
  "CreatedDate": "2024-03-29T01:40:26.1220651+03:30",
  "CreatedBy": "sample string 5",
  "UpdatedDate": "2024-03-29T01:40:26.1220651+03:30",
  "UpdatedBy": "sample string 6",
  "DeletedDate": "2024-03-29T01:40:26.1220651+03:30",
  "DeletedBy": "sample string 7",
  "Id": 8
}

application/xml, text/xml

Sample:
<NewsLetter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArNikAPI.DomainClasses.General">
  <Id xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities">8</Id>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">sample string 5</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">2024-03-29T01:40:26.1220651+03:30</CreatedDate>
  <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">sample string 7</DeletedBy>
  <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">2024-03-29T01:40:26.1220651+03:30</DeletedDate>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">sample string 6</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities.Auditing">2024-03-29T01:40:26.1220651+03:30</UpdatedDate>
  <Attachment>sample string 3</Attachment>
  <Body>sample string 2</Body>
  <Date>2024-03-29T01:40:26.1220651+03:30</Date>
  <Subject>sample string 1</Subject>
</NewsLetter>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.