POST api/ng/workshop/postuserprogramdiary

Request Information

URI Parameters

None.

Body Parameters

UserProgramDiaryEntry
NameDescriptionTypeAdditional information
Hkey

string

None.

PostID

integer

None.

DiaryTypeID

integer

None.

DiaryType

string

None.

UserProgramTaskID

integer

None.

PictureUrl

string

None.

UserValue

string

None.

DateSubmitted

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Hkey": "sample string 1",
  "PostID": 2,
  "DiaryTypeID": 3,
  "DiaryType": "sample string 4",
  "UserProgramTaskID": 5,
  "PictureUrl": "sample string 6",
  "UserValue": "sample string 7",
  "DateSubmitted": "2021-04-19T20:16:33.2395909-04:00"
}

application/xml, text/xml

Sample:
<UserProgramDiaryEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <DateSubmitted>2021-04-19T20:16:33.2395909-04:00</DateSubmitted>
  <DiaryType>sample string 4</DiaryType>
  <DiaryTypeID>3</DiaryTypeID>
  <Hkey>sample string 1</Hkey>
  <PictureUrl>sample string 6</PictureUrl>
  <PostID>2</PostID>
  <UserProgramTaskID>5</UserProgramTaskID>
  <UserValue>sample string 7</UserValue>
</UserProgramDiaryEntry>

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

Response Information

Resource Description

PostUserProgramDiaryResult
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-19T20:16:33.2551909-04:00",
  "ErrorType": 0
}

application/xml, text/xml

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