POST api/Settings
Request Information
URI Parameters
None.
Body Parameters
Setting| Name | Description | Type | Additional information |
|---|---|---|---|
| SettingId | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| Key | string |
Required String length: inclusive between 0 and 10 |
|
| Default | string |
None. |
|
| IsAdvanced | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"SettingId": 1,
"Name": "sample string 2",
"Key": "sample string 3",
"Default": "sample string 4",
"IsAdvanced": true
}
application/xml, text/xml
Sample:
<Setting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Starship.WebAPI.Models"> <Default>sample string 4</Default> <IsAdvanced>true</IsAdvanced> <Key>sample string 3</Key> <Name>sample string 2</Name> <SettingId>1</SettingId> </Setting>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.