POST api/v2/consumables
Request
URI Parameters
Body Parameters
ConsumableNew| Name | Description | Type | Additional information |
|---|---|---|---|
| Identification | string | ||
| Active | boolean | ||
| ReferenceKey | string | ||
| Expires | date | ||
| ExpireDaysAfterOpen | integer | ||
| Cost | decimal number | ||
| ConsumableTypeId | integer | ||
| Infos | Collection of ConsumableInfoNew | ||
| UnrestrictedAccessServiceArea | boolean | ||
| UnrestrictedAccessServiceCenter | boolean | ||
| ConsumableServiceAreaIds | Collection of integer | ||
| ConsumableServiceCenterIds | Collection of integer |
Request Formats
application/json, text/json
Sample:
{
"Identification": "sample string 1",
"Active": true,
"ReferenceKey": "sample string 3",
"Expires": "2026-03-18T19:43:40.624481Z",
"ExpireDaysAfterOpen": 1,
"Cost": 1.1,
"ConsumableTypeId": 4,
"Infos": [
{
"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-03-18T19:43:40.629468Z",
"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-03-18T19:43:40.629468Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7
}
],
"UnrestrictedAccessServiceArea": true,
"UnrestrictedAccessServiceCenter": true,
"ConsumableServiceAreaIds": [
1,
2
],
"ConsumableServiceCenterIds": [
1,
2
]
}
text/html
Sample:
{"Identification":"sample string 1","Active":true,"ReferenceKey":"sample string 3","Expires":"2026-03-18T19:43:40.624481Z","ExpireDaysAfterOpen":1,"Cost":1.1,"ConsumableTypeId":4,"Infos":[{"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-03-18T19:43:40.629468Z","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-03-18T19:43:40.629468Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7}],"UnrestrictedAccessServiceArea":true,"UnrestrictedAccessServiceCenter":true,"ConsumableServiceAreaIds":[1,2],"ConsumableServiceCenterIds":[1,2]}
Response
integerResponse Format
application/json, text/json, text/html
Sample:
1