GET api/Timber/AddTimber
Request Information
URI Parameters
None.
Body Parameters
TimberUpdateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TimberId | globally unique identifier |
None. |
|
| ColumnName | string |
None. |
|
| NewValue | string |
None. |
|
| OldValue | string |
None. |
|
| AdditionalValue | string |
None. |
|
| DeleteCosts | boolean |
None. |
|
| GetCubicAllCosts | boolean |
None. |
|
| DeleteAll | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"timberId": "b4fcd7ad-f47b-4545-8b62-71d8cde6ff54",
"columnName": "sample string 2",
"newValue": "sample string 3",
"oldValue": "sample string 4",
"additionalValue": "sample string 5",
"deleteCosts": true,
"getCubicAllCosts": true,
"deleteAll": true
}
application/xml, text/xml
Sample:
<TimberUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <AdditionalValue>sample string 5</AdditionalValue> <ColumnName>sample string 2</ColumnName> <DeleteAll>true</DeleteAll> <DeleteCosts>true</DeleteCosts> <GetCubicAllCosts>true</GetCubicAllCosts> <NewValue>sample string 3</NewValue> <OldValue>sample string 4</OldValue> <TimberId>b4fcd7ad-f47b-4545-8b62-71d8cde6ff54</TimberId> </TimberUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TimberViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Index | integer |
None. |
|
| TimberId | globally unique identifier |
None. |
|
| Timber | string |
None. |
|
| BasePercent | integer |
None. |
|
| BasePercentText | string |
None. |
|
| CostMethod | integer |
None. |
|
| CostMethodText | string |
None. |
|
| Weight | integer |
None. |
|
| Grain | string |
None. |
|
| TimberClass | string |
None. |
|
| TimberNote | string |
None. |
|
| Texture | string |
None. |
|
| uid | string |
None. |
|
| extension | string |
None. |
|
| color | string |
None. |
|
| TimberAbbreviation | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"index": 1,
"timberId": "e4604faf-ab4f-462a-a518-ef48d524df77",
"timber": "sample string 3",
"basePercent": 4,
"basePercentText": "sample string 5",
"costMethod": 6,
"costMethodText": "sample string 7",
"weight": 8,
"grain": "sample string 9",
"timberClass": "sample string 10",
"timberNote": "sample string 11",
"texture": "sample string 12",
"uid": "sample string 13",
"extension": "sample string 14",
"color": "sample string 15",
"timberAbbreviation": "sample string 16"
}
application/xml, text/xml
Sample:
<TimberViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <BasePercent>4</BasePercent> <BasePercentText>sample string 5</BasePercentText> <CostMethod>6</CostMethod> <CostMethodText>sample string 7</CostMethodText> <Grain>sample string 9</Grain> <Index>1</Index> <Texture>sample string 12</Texture> <Timber>sample string 3</Timber> <TimberAbbreviation>sample string 16</TimberAbbreviation> <TimberClass>sample string 10</TimberClass> <TimberId>e4604faf-ab4f-462a-a518-ef48d524df77</TimberId> <TimberNote>sample string 11</TimberNote> <Weight>8</Weight> <color>sample string 15</color> <extension>sample string 14</extension> <uid>sample string 13</uid> </TimberViewModel>