PATCH api/servicechargetype/hardware/{id}
Update selected hardware details for the specified hardware
Error Messages
- 409/Conflict - This product code already exists
- 404/Conflict - Invalid supplier id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | ID number of the hardware product | integer |
Required |
Body Parameters
HardwareServiceChargeTypePatch| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode | The code for the hardware product | string |
Required String length: inclusive between 0 and 50 |
| Description | Unique description used to identify the Hardware product | string |
Required String length: inclusive between 0 and 100 |
| DefaultSalePrice | The default sale price of the hardware product | decimal number |
None. |
| DefaultCost | The default cost of the hardware product. This can only be set if the View Default Cost permission is enabled | decimal number |
None. |
| DefaultBaseLineCost | The default baseline cost of the hardware product. This can only be set when the View Default Baseline Cost permission is enabled | decimal number |
None. |
| Nominal | The associated nominal code | string |
String length: inclusive between 0 and 50 |
| DefaultSupplier | The default supplier of the hardware | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductCode": "sample string 1",
"Description": "sample string 2",
"DefaultSalePrice": 1.0,
"DefaultCost": 1.0,
"DefaultBaseLineCost": 1.0,
"Nominal": "sample string 3",
"DefaultSupplier": 1
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.