POST api/Admin/SetSystemSettingValue

SetSystemSettingValue settingId, int settingValue

Request Information

URI Parameters

None.

Body Parameters

newSetting

SystemSettingList
NameDescriptionTypeAdditional information
SettingItemID

integer

None.

SettingValue

integer

None.

SettingText

string

None.

SettingNote

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SettingItemID": 1,
  "SettingValue": 1,
  "SettingText": "sample string 2",
  "SettingNote": "sample string 3"
}

application/xml, text/xml

Sample:
<SystemSettingList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB">
  <SettingItemID>1</SettingItemID>
  <SettingNote>sample string 3</SettingNote>
  <SettingText>sample string 2</SettingText>
  <SettingValue>1</SettingValue>
</SystemSettingList>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SetSystemSettingValue settingId, int settingValue

ApiReturn
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</ApiReturn>