Api Home > Settings > SetSetting

POST api/V3/Settings/SetSetting Updates or adds a setting.

Request Information

URI Parameters

None.

Body Parameters

The SetingsItem object

SettingsItem
NameDescriptionTypeAdditional information
Key

string

None.

Value

string

None.

TenantId

integer

None.

Id

integer

None.

ModifiedDate

date

None.

ModifiedBy

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "Value": "sample string 2",
  "TenantId": 3,
  "Id": 4,
  "ModifiedDate": "2019-12-08T01:08:48.560Z",
  "ModifiedBy": "d02c2475-a688-45a0-bb6c-c19b773a19c3"
}

application/xml, text/xml

Sample:
<SettingsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cireson.ServiceManager.Library.InfoObjects">
  <Id>4</Id>
  <ModifiedBy>d02c2475-a688-45a0-bb6c-c19b773a19c3</ModifiedBy>
  <ModifiedDate>2019-12-08T01:08:48.5609039+00:00</ModifiedDate>
  <Key>sample string 1</Key>
  <TenantId>3</TenantId>
  <Value>sample string 2</Value>
</SettingsItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SettingsItem
NameDescriptionTypeAdditional information
Key

string

None.

Value

string

None.

TenantId

integer

None.

Id

integer

None.

ModifiedDate

date

None.

ModifiedBy

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "Value": "sample string 2",
  "TenantId": 3,
  "Id": 4,
  "ModifiedDate": "2019-12-08T01:08:48.560Z",
  "ModifiedBy": "28108c16-2e9e-4bac-a7c0-e108e9c990ef"
}

application/xml, text/xml

Sample:
<SettingsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cireson.ServiceManager.Library.InfoObjects">
  <Id>4</Id>
  <ModifiedBy>28108c16-2e9e-4bac-a7c0-e108e9c990ef</ModifiedBy>
  <ModifiedDate>2019-12-08T01:08:48.5609039+00:00</ModifiedDate>
  <Key>sample string 1</Key>
  <TenantId>3</TenantId>
  <Value>sample string 2</Value>
</SettingsItem>