POST api/ng/circle/postuserdiary

Request Information

URI Parameters

None.

Body Parameters

UserDiaryEntry
NameDescriptionTypeAdditional information
PostID

integer

None.

PostTypeID

integer

None.

PostType

string

None.

DiaryTypeID

integer

None.

DiaryType

string

None.

Title

string

None.

PictureUrl

string

None.

Content

string

None.

DateSubmitted

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PostID": 1,
  "PostTypeID": 2,
  "PostType": "sample string 3",
  "DiaryTypeID": 4,
  "DiaryType": "sample string 5",
  "Title": "sample string 6",
  "PictureUrl": "sample string 7",
  "Content": "sample string 8",
  "DateSubmitted": "2021-04-19T09:09:12.771516-04:00"
}

application/xml, text/xml

Sample:
<UserDiaryEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <Content>sample string 8</Content>
  <DateSubmitted>2021-04-19T09:09:12.771516-04:00</DateSubmitted>
  <DiaryType>sample string 5</DiaryType>
  <DiaryTypeID>4</DiaryTypeID>
  <PictureUrl>sample string 7</PictureUrl>
  <PostID>1</PostID>
  <PostType>sample string 3</PostType>
  <PostTypeID>2</PostTypeID>
  <Title>sample string 6</Title>
</UserDiaryEntry>

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

Response Information

Resource Description

PostSubmitResult
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

PostID

integer

None.

DateSubmitted

date

None.

ErrorType

UserPostError

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "PostID": 2,
  "DateSubmitted": "2021-04-19T09:09:12.7835167-04:00",
  "ErrorType": 0
}

application/xml, text/xml

Sample:
<PostSubmitResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <DateSubmitted>2021-04-19T09:09:12.7835167-04:00</DateSubmitted>
  <ErrorType>NoError</ErrorType>
  <IsSuccess>true</IsSuccess>
  <PostID>2</PostID>
</PostSubmitResult>