POST api/Style/PreUnloadStyle

Request Information

URI Parameters

None.

Body Parameters

StyleViewModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CompanyId

integer

None.

Category

integer

None.

StyleName

string

None.

Description

string

None.

StyleClass

string

None.

SizeId

integer

None.

Width

string

None.

WidthValue

integer

None.

Depth

string

None.

DepthValue

integer

None.

StyleNote

string

None.

TimberThemeId

integer

None.

TimberThemeName

string

None.

FittingBlobUid

globally unique identifier

None.

FittingBlobName

string

None.

PartId

integer

None.

PartCode

string

None.

PartOption

integer

None.

StyleType

integer

None.

StyleTypeRevert

integer

None.

StyleTypeRevertText

string

None.

StyleVersion

integer

None.

OutHouseCost

string

None.

OptionMask

integer

None.

TurnTime

integer

None.

PhotoId

integer

None.

PhotoCaption

string

None.

Value1

integer

None.

Value2

integer

None.

Value3

integer

None.

Value4

integer

None.

Value5

integer

None.

Value6

integer

None.

Value7

integer

None.

Value8

integer

None.

Value9

integer

None.

Value10

integer

None.

Value11

integer

None.

Value12

integer

None.

Value13

integer

None.

Value14

integer

None.

Value1Text

string

None.

Value2Text

string

None.

Value3Text

string

None.

Value4Text

string

None.

Value5Text

string

None.

Value6Text

string

None.

Value7Text

string

None.

Value8Text

string

None.

Value9Text

string

None.

Value10Text

string

None.

Value11Text

string

None.

Value12Text

string

None.

Value13Text

string

None.

Value14Text

string

None.

CheckBox1

boolean

None.

CheckBox2

boolean

None.

CheckBox3

boolean

None.

CheckBox4

boolean

None.

CheckBox5

boolean

None.

CheckBox6

boolean

None.

CheckBox7

boolean

None.

CheckBox8

boolean

None.

CheckBox9

boolean

None.

WidthVisible

boolean

None.

DepthVisible

boolean

None.

ThemeVisible

boolean

None.

OptionTypesEnabled

Collection of boolean

None.

ValuesCaptions

Collection of string

None.

CheckboxesCaptions

Collection of string

None.

ValuesVisible

Collection of boolean

None.

CheckboxesVisible

Collection of boolean

None.

FittingVisible

boolean

None.

FittingsLabel

string

None.

FittingEnabled

boolean

None.

CostMinutesLabel

string

None.

CostMinutesEnabled

boolean

None.

PartOption1Enabled

boolean

None.

PartOption2Enabled

boolean

None.

SetPartButtonEnabled

boolean

None.

PartIdEnabled

boolean

None.

DeleteInTimberCost

boolean

None.

ValuesEnabled

Collection of boolean

None.

CheckboxesEnabled

Collection of boolean

None.

DepthEnabled

boolean

None.

WidthEnabled

boolean

None.

SelectedIndex

integer

None.

StyleInList

string

None.

ValueMultiplier

decimal number

None.

IsFromJobComponent

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "e7b34f57-806c-49bd-a65a-53b9e69a2cd1",
  "companyId": 1,
  "category": 1,
  "styleName": "sample string 2",
  "description": "sample string 3",
  "styleClass": "sample string 4",
  "sizeId": 1,
  "width": "sample string 5",
  "widthValue": 1,
  "depth": "sample string 6",
  "depthValue": 1,
  "styleNote": "sample string 7",
  "timberThemeId": 1,
  "timberThemeName": "sample string 8",
  "fittingBlobUid": "74b198af-cfe1-468c-a288-a7177818f8ca",
  "fittingBlobName": "sample string 9",
  "partId": 1,
  "partCode": "sample string 10",
  "partOption": 11,
  "styleType": 12,
  "styleTypeRevert": 1,
  "styleTypeRevertText": "sample string 13",
  "styleVersion": 1,
  "outHouseCost": "sample string 14",
  "optionMask": 1,
  "turnTime": 1,
  "photoId": 1,
  "photoCaption": "sample string 15",
  "value1": 1,
  "value2": 1,
  "value3": 1,
  "value4": 1,
  "value5": 1,
  "value6": 1,
  "value7": 1,
  "value8": 1,
  "value9": 1,
  "value10": 1,
  "value11": 1,
  "value12": 1,
  "value13": 1,
  "value14": 1,
  "value1Text": "sample string 16",
  "value2Text": "sample string 17",
  "value3Text": "sample string 18",
  "value4Text": "sample string 19",
  "value5Text": "sample string 20",
  "value6Text": "sample string 21",
  "value7Text": "sample string 22",
  "value8Text": "sample string 23",
  "value9Text": "sample string 24",
  "value10Text": "sample string 25",
  "value11Text": "sample string 26",
  "value12Text": "sample string 27",
  "value13Text": "sample string 28",
  "value14Text": "sample string 29",
  "checkBox1": true,
  "checkBox2": true,
  "checkBox3": true,
  "checkBox4": true,
  "checkBox5": true,
  "checkBox6": true,
  "checkBox7": true,
  "checkBox8": true,
  "checkBox9": true,
  "widthVisible": true,
  "depthVisible": true,
  "themeVisible": true,
  "optionTypesEnabled": [
    true,
    true
  ],
  "valuesCaptions": [
    "sample string 1",
    "sample string 2"
  ],
  "checkboxesCaptions": [
    "sample string 1",
    "sample string 2"
  ],
  "valuesVisible": [
    true,
    true
  ],
  "checkboxesVisible": [
    true,
    true
  ],
  "fittingVisible": true,
  "fittingsLabel": "sample string 43",
  "fittingEnabled": true,
  "costMinutesLabel": "sample string 45",
  "costMinutesEnabled": true,
  "partOption1Enabled": true,
  "partOption2Enabled": true,
  "setPartButtonEnabled": true,
  "partIdEnabled": true,
  "deleteInTimberCost": true,
  "valuesEnabled": [
    true,
    true
  ],
  "checkboxesEnabled": [
    true,
    true
  ],
  "depthEnabled": true,
  "widthEnabled": true,
  "selectedIndex": 53,
  "styleInList": "sample string 54",
  "valueMultiplier": 55.1,
  "isFromJobComponent": true
}

application/xml, text/xml

Sample:
<StyleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
  <Category>1</Category>
  <CheckBox1>true</CheckBox1>
  <CheckBox2>true</CheckBox2>
  <CheckBox3>true</CheckBox3>
  <CheckBox4>true</CheckBox4>
  <CheckBox5>true</CheckBox5>
  <CheckBox6>true</CheckBox6>
  <CheckBox7>true</CheckBox7>
  <CheckBox8>true</CheckBox8>
  <CheckBox9>true</CheckBox9>
  <CheckboxesCaptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CheckboxesCaptions>
  <CheckboxesEnabled xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </CheckboxesEnabled>
  <CheckboxesVisible xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </CheckboxesVisible>
  <CompanyId>1</CompanyId>
  <CostMinutesEnabled>true</CostMinutesEnabled>
  <CostMinutesLabel>sample string 45</CostMinutesLabel>
  <DeleteInTimberCost>true</DeleteInTimberCost>
  <Depth>sample string 6</Depth>
  <DepthEnabled>true</DepthEnabled>
  <DepthValue>1</DepthValue>
  <DepthVisible>true</DepthVisible>
  <Description>sample string 3</Description>
  <FittingBlobName>sample string 9</FittingBlobName>
  <FittingBlobUid>74b198af-cfe1-468c-a288-a7177818f8ca</FittingBlobUid>
  <FittingEnabled>true</FittingEnabled>
  <FittingVisible>true</FittingVisible>
  <FittingsLabel>sample string 43</FittingsLabel>
  <Id>e7b34f57-806c-49bd-a65a-53b9e69a2cd1</Id>
  <IsFromJobComponent>true</IsFromJobComponent>
  <OptionMask>1</OptionMask>
  <OptionTypesEnabled xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </OptionTypesEnabled>
  <OutHouseCost>sample string 14</OutHouseCost>
  <PartCode>sample string 10</PartCode>
  <PartId>1</PartId>
  <PartIdEnabled>true</PartIdEnabled>
  <PartOption>11</PartOption>
  <PartOption1Enabled>true</PartOption1Enabled>
  <PartOption2Enabled>true</PartOption2Enabled>
  <PhotoCaption>sample string 15</PhotoCaption>
  <PhotoId>1</PhotoId>
  <SelectedIndex>53</SelectedIndex>
  <SetPartButtonEnabled>true</SetPartButtonEnabled>
  <SizeId>1</SizeId>
  <StyleClass>sample string 4</StyleClass>
  <StyleInList>sample string 54</StyleInList>
  <StyleName>sample string 2</StyleName>
  <StyleNote>sample string 7</StyleNote>
  <StyleType>12</StyleType>
  <StyleTypeRevert>1</StyleTypeRevert>
  <StyleTypeRevertText>sample string 13</StyleTypeRevertText>
  <StyleVersion>1</StyleVersion>
  <ThemeVisible>true</ThemeVisible>
  <TimberThemeId>1</TimberThemeId>
  <TimberThemeName>sample string 8</TimberThemeName>
  <TurnTime>1</TurnTime>
  <Value1>1</Value1>
  <Value10>1</Value10>
  <Value10Text>sample string 25</Value10Text>
  <Value11>1</Value11>
  <Value11Text>sample string 26</Value11Text>
  <Value12>1</Value12>
  <Value12Text>sample string 27</Value12Text>
  <Value13>1</Value13>
  <Value13Text>sample string 28</Value13Text>
  <Value14>1</Value14>
  <Value14Text>sample string 29</Value14Text>
  <Value1Text>sample string 16</Value1Text>
  <Value2>1</Value2>
  <Value2Text>sample string 17</Value2Text>
  <Value3>1</Value3>
  <Value3Text>sample string 18</Value3Text>
  <Value4>1</Value4>
  <Value4Text>sample string 19</Value4Text>
  <Value5>1</Value5>
  <Value5Text>sample string 20</Value5Text>
  <Value6>1</Value6>
  <Value6Text>sample string 21</Value6Text>
  <Value7>1</Value7>
  <Value7Text>sample string 22</Value7Text>
  <Value8>1</Value8>
  <Value8Text>sample string 23</Value8Text>
  <Value9>1</Value9>
  <Value9Text>sample string 24</Value9Text>
  <ValueMultiplier>55.1</ValueMultiplier>
  <ValuesCaptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValuesCaptions>
  <ValuesEnabled xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </ValuesEnabled>
  <ValuesVisible xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </ValuesVisible>
  <Width>sample string 5</Width>
  <WidthEnabled>true</WidthEnabled>
  <WidthValue>1</WidthValue>
  <WidthVisible>true</WidthVisible>
</StyleViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StyleResultViewModel
NameDescriptionTypeAdditional information
SaveSuccess

boolean

None.

StyleNameAndSize

string

None.

InvalidDepthInFrets

boolean

None.

InvalidDepthInFretsMessage

string

None.

StyleExists

boolean

None.

StyleExistsMessage

string

None.

DuplicateClass

boolean

None.

DuplicateClassMessage

string

None.

NoPartId

boolean

None.

NoPartIdMessage

string

None.

IsNewStyle

boolean

None.

NewStyleId

globally unique identifier

None.

CategoryId

integer

None.

ErrorMessage

string

None.

ErrorType

string

None.

ConfirmDeleteTimberCostMessage

string

None.

UnusedTimberSizeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "saveSuccess": true,
  "styleNameAndSize": "sample string 2",
  "invalidDepthInFrets": true,
  "invalidDepthInFretsMessage": "sample string 4",
  "styleExists": true,
  "styleExistsMessage": "sample string 6",
  "duplicateClass": true,
  "duplicateClassMessage": "sample string 8",
  "noPartId": true,
  "noPartIdMessage": "sample string 10",
  "isNewStyle": true,
  "newStyleId": "cc2b4206-0acf-4ac2-9e4f-e372c3697380",
  "categoryId": 12,
  "errorMessage": "sample string 13",
  "errorType": "sample string 14",
  "confirmDeleteTimberCostMessage": "sample string 15",
  "unusedTimberSizeId": 16
}

application/xml, text/xml

Sample:
<StyleResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
  <CategoryId>12</CategoryId>
  <ConfirmDeleteTimberCostMessage>sample string 15</ConfirmDeleteTimberCostMessage>
  <DuplicateClass>true</DuplicateClass>
  <DuplicateClassMessage>sample string 8</DuplicateClassMessage>
  <ErrorMessage>sample string 13</ErrorMessage>
  <ErrorType>sample string 14</ErrorType>
  <InvalidDepthInFrets>true</InvalidDepthInFrets>
  <InvalidDepthInFretsMessage>sample string 4</InvalidDepthInFretsMessage>
  <IsNewStyle>true</IsNewStyle>
  <NewStyleId>cc2b4206-0acf-4ac2-9e4f-e372c3697380</NewStyleId>
  <NoPartId>true</NoPartId>
  <NoPartIdMessage>sample string 10</NoPartIdMessage>
  <SaveSuccess>true</SaveSuccess>
  <StyleExists>true</StyleExists>
  <StyleExistsMessage>sample string 6</StyleExistsMessage>
  <StyleNameAndSize>sample string 2</StyleNameAndSize>
  <UnusedTimberSizeId>16</UnusedTimberSizeId>
</StyleResultViewModel>