POST api/Configuration
Request Information
URI Parameters
None.
Body Parameters
ConfigurationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ConfigGroupId | integer |
Required |
|
| Key | string |
Required String length: inclusive between 0 and 50 |
|
| Value | string |
Required String length: inclusive between 0 and 50 |
|
| ValueDataType | string |
String length: inclusive between 0 and 50 |
|
| Title | string |
Required String length: inclusive between 0 and 50 |
|
| TitleOther | string |
Required String length: inclusive between 0 and 50 |
|
| IsViewable | boolean |
Required |
|
| IsEditable | boolean |
Required |
|
| ConfigGroupList | Collection of SelectListItem |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ConfigGroupId": 2,
"Key": "sample string 3",
"Value": "sample string 4",
"ValueDataType": "sample string 5",
"Title": "sample string 6",
"TitleOther": "sample string 7",
"IsViewable": true,
"IsEditable": true,
"ConfigGroupList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<ConfigurationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Components.UserManagement.DTO">
<ConfigGroupId>2</ConfigGroupId>
<ConfigGroupList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d2p1:SelectListItem>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>true</d2p1:Selected>
<d2p1:Text>sample string 3</d2p1:Text>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:SelectListItem>
<d2p1:SelectListItem>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>true</d2p1:Selected>
<d2p1:Text>sample string 3</d2p1:Text>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:SelectListItem>
</ConfigGroupList>
<Id>1</Id>
<IsEditable>true</IsEditable>
<IsViewable>true</IsViewable>
<Key>sample string 3</Key>
<Title>sample string 6</Title>
<TitleOther>sample string 7</TitleOther>
<Value>sample string 4</Value>
<ValueDataType>sample string 5</ValueDataType>
</ConfigurationDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.