POST api/admin/saveprogramoption

Request Information

URI Parameters

None.

Body Parameters

ProgramOptionModel
NameDescriptionTypeAdditional information
ProgramOptionID

integer

None.

ProgramID

integer

None.

OptionName

string

None.

ValueDate

string

None.

ValueInt

integer

None.

ValueString

string

None.

ValueMoney

decimal number

None.

ValueBool

boolean

None.

IsCurrent

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProgramOptionID": 1,
  "ProgramID": 2,
  "OptionName": "sample string 3",
  "ValueDate": "sample string 4",
  "ValueInt": 1,
  "ValueString": "sample string 5",
  "ValueMoney": 1.0,
  "ValueBool": true,
  "IsCurrent": true
}

application/xml, text/xml

Sample:
<ProgramOptionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <IsCurrent>true</IsCurrent>
  <OptionName>sample string 3</OptionName>
  <ProgramID>2</ProgramID>
  <ProgramOptionID>1</ProgramOptionID>
  <ValueBool>true</ValueBool>
  <ValueDate>sample string 4</ValueDate>
  <ValueInt>1</ValueInt>
  <ValueMoney>1</ValueMoney>
  <ValueString>sample string 5</ValueString>
</ProgramOptionModel>

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

Response Information

Resource Description

PostResultModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<PostResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccess>true</IsSuccess>
</PostResultModel>