POST api/UserStyleCategory/EscapeKey
Request Information
URI Parameters
None.
Body Parameters
UserStyleCategoryMainViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Categories | Collection of LookupDto |
None. |
|
| Properties | Collection of UserStylePropertyViewModel |
None. |
|
| ManageViewModel | UserStyleCategoryManageViewModel |
None. |
|
| SelectedIndex | integer |
None. |
|
| NewButton | CommandButtonDto |
None. |
|
| DeleteButton | CommandButtonDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"newButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"deleteButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"categories": [
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "cbf29e62-85c6-4091-886b-0c280e5d9025",
"parentUid": "e837e4c0-03af-474f-b555-6123f7764c74",
"clientDefaultContactUid": "cf174f56-0f20-4819-9d16-694d1177cca0"
},
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "cbf29e62-85c6-4091-886b-0c280e5d9025",
"parentUid": "e837e4c0-03af-474f-b555-6123f7764c74",
"clientDefaultContactUid": "cf174f56-0f20-4819-9d16-694d1177cca0"
}
],
"properties": [
{
"rowIndex": 1,
"property": "sample string 2",
"value": "sample string 3",
"lookup": [
"sample string 1",
"sample string 2"
]
},
{
"rowIndex": 1,
"property": "sample string 2",
"value": "sample string 3",
"lookup": [
"sample string 1",
"sample string 2"
]
}
],
"manageViewModel": {
"isCategoryExists": true,
"saveSuccess": true,
"jobInProgress": true,
"deleteAll": true,
"continueDeleteAll": true,
"categoryInJob": true,
"deleteCategory": true,
"category": {
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "cbf29e62-85c6-4091-886b-0c280e5d9025",
"parentUid": "e837e4c0-03af-474f-b555-6123f7764c74",
"clientDefaultContactUid": "cf174f56-0f20-4819-9d16-694d1177cca0"
}
},
"selectedIndex": 1
}
application/xml, text/xml
Sample:
<UserStyleCategoryMainViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<Categories xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>cf174f56-0f20-4819-9d16-694d1177cca0</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>e837e4c0-03af-474f-b555-6123f7764c74</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>cbf29e62-85c6-4091-886b-0c280e5d9025</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>cf174f56-0f20-4819-9d16-694d1177cca0</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>e837e4c0-03af-474f-b555-6123f7764c74</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>cbf29e62-85c6-4091-886b-0c280e5d9025</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
</Categories>
<DeleteButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</DeleteButton>
<ManageViewModel>
<Category xmlns:d3p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d3p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>cf174f56-0f20-4819-9d16-694d1177cca0</d3p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d3p1:_x003C_Description_x003E_k__BackingField>sample string 5</d3p1:_x003C_Description_x003E_k__BackingField>
<d3p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d3p1:_x003C_IdString_x003E_k__BackingField>
<d3p1:_x003C_Id_x003E_k__BackingField>1</d3p1:_x003C_Id_x003E_k__BackingField>
<d3p1:_x003C_Name_x003E_k__BackingField>sample string 3</d3p1:_x003C_Name_x003E_k__BackingField>
<d3p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d3p1:_x003C_ParentId_x003E_k__BackingField>
<d3p1:_x003C_ParentUid_x003E_k__BackingField>e837e4c0-03af-474f-b555-6123f7764c74</d3p1:_x003C_ParentUid_x003E_k__BackingField>
<d3p1:_x003C_Selected_x003E_k__BackingField>true</d3p1:_x003C_Selected_x003E_k__BackingField>
<d3p1:_x003C_SortIndex_x003E_k__BackingField>7</d3p1:_x003C_SortIndex_x003E_k__BackingField>
<d3p1:_x003C_UniqueId_x003E_k__BackingField>cbf29e62-85c6-4091-886b-0c280e5d9025</d3p1:_x003C_UniqueId_x003E_k__BackingField>
</Category>
<CategoryInJob>true</CategoryInJob>
<ContinueDeleteAll>true</ContinueDeleteAll>
<DeleteAll>true</DeleteAll>
<DeleteCategory>true</DeleteCategory>
<IsCategoryExists>true</IsCategoryExists>
<JobInProgress>true</JobInProgress>
<SaveSuccess>true</SaveSuccess>
</ManageViewModel>
<NewButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</NewButton>
<Properties>
<UserStylePropertyViewModel>
<Lookup xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Lookup>
<Property>sample string 2</Property>
<RowIndex>1</RowIndex>
<Value>sample string 3</Value>
</UserStylePropertyViewModel>
<UserStylePropertyViewModel>
<Lookup xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Lookup>
<Property>sample string 2</Property>
<RowIndex>1</RowIndex>
<Value>sample string 3</Value>
</UserStylePropertyViewModel>
</Properties>
<SelectedIndex>1</SelectedIndex>
</UserStyleCategoryMainViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserStyleCategoryMainViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Categories | Collection of LookupDto |
None. |
|
| Properties | Collection of UserStylePropertyViewModel |
None. |
|
| ManageViewModel | UserStyleCategoryManageViewModel |
None. |
|
| SelectedIndex | integer |
None. |
|
| NewButton | CommandButtonDto |
None. |
|
| DeleteButton | CommandButtonDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"newButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"deleteButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"categories": [
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "63c10d3d-0fca-448f-b9a8-69063bb13954",
"parentUid": "2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3",
"clientDefaultContactUid": "d2f3f69e-577a-405f-971b-d1e8a1daf4b6"
},
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "63c10d3d-0fca-448f-b9a8-69063bb13954",
"parentUid": "2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3",
"clientDefaultContactUid": "d2f3f69e-577a-405f-971b-d1e8a1daf4b6"
}
],
"properties": [
{
"rowIndex": 1,
"property": "sample string 2",
"value": "sample string 3",
"lookup": [
"sample string 1",
"sample string 2"
]
},
{
"rowIndex": 1,
"property": "sample string 2",
"value": "sample string 3",
"lookup": [
"sample string 1",
"sample string 2"
]
}
],
"manageViewModel": {
"isCategoryExists": true,
"saveSuccess": true,
"jobInProgress": true,
"deleteAll": true,
"continueDeleteAll": true,
"categoryInJob": true,
"deleteCategory": true,
"category": {
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "63c10d3d-0fca-448f-b9a8-69063bb13954",
"parentUid": "2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3",
"clientDefaultContactUid": "d2f3f69e-577a-405f-971b-d1e8a1daf4b6"
}
},
"selectedIndex": 1
}
application/xml, text/xml
Sample:
<UserStyleCategoryMainViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<Categories xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>d2f3f69e-577a-405f-971b-d1e8a1daf4b6</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>63c10d3d-0fca-448f-b9a8-69063bb13954</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>d2f3f69e-577a-405f-971b-d1e8a1daf4b6</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>63c10d3d-0fca-448f-b9a8-69063bb13954</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
</Categories>
<DeleteButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</DeleteButton>
<ManageViewModel>
<Category xmlns:d3p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d3p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>d2f3f69e-577a-405f-971b-d1e8a1daf4b6</d3p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d3p1:_x003C_Description_x003E_k__BackingField>sample string 5</d3p1:_x003C_Description_x003E_k__BackingField>
<d3p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d3p1:_x003C_IdString_x003E_k__BackingField>
<d3p1:_x003C_Id_x003E_k__BackingField>1</d3p1:_x003C_Id_x003E_k__BackingField>
<d3p1:_x003C_Name_x003E_k__BackingField>sample string 3</d3p1:_x003C_Name_x003E_k__BackingField>
<d3p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d3p1:_x003C_ParentId_x003E_k__BackingField>
<d3p1:_x003C_ParentUid_x003E_k__BackingField>2ce0abf2-1f61-47c7-a5d7-2b37d4f4f4a3</d3p1:_x003C_ParentUid_x003E_k__BackingField>
<d3p1:_x003C_Selected_x003E_k__BackingField>true</d3p1:_x003C_Selected_x003E_k__BackingField>
<d3p1:_x003C_SortIndex_x003E_k__BackingField>7</d3p1:_x003C_SortIndex_x003E_k__BackingField>
<d3p1:_x003C_UniqueId_x003E_k__BackingField>63c10d3d-0fca-448f-b9a8-69063bb13954</d3p1:_x003C_UniqueId_x003E_k__BackingField>
</Category>
<CategoryInJob>true</CategoryInJob>
<ContinueDeleteAll>true</ContinueDeleteAll>
<DeleteAll>true</DeleteAll>
<DeleteCategory>true</DeleteCategory>
<IsCategoryExists>true</IsCategoryExists>
<JobInProgress>true</JobInProgress>
<SaveSuccess>true</SaveSuccess>
</ManageViewModel>
<NewButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</NewButton>
<Properties>
<UserStylePropertyViewModel>
<Lookup xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Lookup>
<Property>sample string 2</Property>
<RowIndex>1</RowIndex>
<Value>sample string 3</Value>
</UserStylePropertyViewModel>
<UserStylePropertyViewModel>
<Lookup xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Lookup>
<Property>sample string 2</Property>
<RowIndex>1</RowIndex>
<Value>sample string 3</Value>
</UserStylePropertyViewModel>
</Properties>
<SelectedIndex>1</SelectedIndex>
</UserStyleCategoryMainViewModel>