PUT api/v2/consumabletypes/{consumableTypeId}
Request
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| consumableTypeId | integer |
Required |
Body Parameters
ConsumableTypeUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer | ||
| Identification | string | ||
| Active | boolean | ||
| ReferenceKey | string | ||
| MeasurementUnitId | integer | ||
| MinQuantityNotice | integer | ||
| Precision | integer | ||
| AdvanceNotice | integer | ||
| Infos | DeltaOfConsumableTypeInfoNewAndConsumableTypeInfoUpdate | ||
| Density | decimal number |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Identification": "sample string 2",
"Active": true,
"ReferenceKey": "sample string 4",
"MeasurementUnitId": 5,
"MinQuantityNotice": 6,
"Precision": 7,
"AdvanceNotice": 8,
"Infos": {
"Inserted": [
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 4",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:06:59.4309356Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7
},
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 4",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:06:59.4309356Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7
}
],
"Modified": [
{
"Id": 1,
"InfoId": 2,
"InfoTypeId": 3,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 4",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 5",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:06:59.4309356Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 8
},
{
"Id": 1,
"InfoId": 2,
"InfoTypeId": 3,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 4",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 5",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:06:59.4309356Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 8
}
],
"Deleted": [
1,
2
]
},
"Density": 9.1
}
text/html
Sample:
{"Id":1,"Identification":"sample string 2","Active":true,"ReferenceKey":"sample string 4","MeasurementUnitId":5,"MinQuantityNotice":6,"Precision":7,"AdvanceNotice":8,"Infos":{"Inserted":[{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:06:59.4309356Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7},{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:06:59.4309356Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7}],"Modified":[{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:06:59.4309356Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8},{"Id":1,"InfoId":2,"InfoTypeId":3,"MeasurementUnitId":1,"DisplayValue":"sample string 4","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:06:59.4309356Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8}],"Deleted":[1,2]},"Density":9.1}
Response
IHttpActionResultResponse Format
application/json, text/json, text/html
Sample:
Sample not available.