POST api/ng/workshop/postusercontrolinput

Request Information

URI Parameters

None.

Body Parameters

PostUserTaskControlValue
NameDescriptionTypeAdditional information
TaskControlID

integer

None.

UserProgramTaskID

integer

None.

UserProgramTaskControlID

integer

None.

UserValue

string

None.

DateSubmitted

date

None.

Request Formats

application/json, text/json

Sample:
{
  "TaskControlID": 1,
  "UserProgramTaskID": 2,
  "UserProgramTaskControlID": 3,
  "UserValue": "sample string 4",
  "DateSubmitted": "2021-04-19T15:28:40.272524-04:00"
}

application/xml, text/xml

Sample:
<PostUserTaskControlValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <DateSubmitted>2021-04-19T15:28:40.272524-04:00</DateSubmitted>
  <TaskControlID>1</TaskControlID>
  <UserProgramTaskControlID>3</UserProgramTaskControlID>
  <UserProgramTaskID>2</UserProgramTaskID>
  <UserValue>sample string 4</UserValue>
</PostUserTaskControlValue>

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

Response Information

Resource Description

PostUserTaskControlResult
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

UserProgramTaskControlID

integer

None.

DateSubmitted

date

None.

ErrorType

UserPostError

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "UserProgramTaskControlID": 2,
  "DateSubmitted": "2021-04-19T15:28:40.272524-04:00",
  "ErrorType": 0
}

application/xml, text/xml

Sample:
<PostUserTaskControlResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <DateSubmitted>2021-04-19T15:28:40.272524-04:00</DateSubmitted>
  <ErrorType>NoError</ErrorType>
  <IsSuccess>true</IsSuccess>
  <UserProgramTaskControlID>2</UserProgramTaskControlID>
</PostUserTaskControlResult>