POST api/v2/consumabletypes

Request

URI Parameters

Body Parameters

ConsumableTypeNew
NameDescriptionTypeAdditional information
Identification

string

Active

boolean

ReferenceKey

string

MeasurementUnitId

integer

MinQuantityNotice

integer

Precision

integer

AdvanceNotice

integer

Infos

Collection of ConsumableTypeInfoNew

Request Formats

application/json, text/json

Sample:
{
  "Identification": "sample string 1",
  "Active": true,
  "ReferenceKey": "sample string 3",
  "MeasurementUnitId": 4,
  "MinQuantityNotice": 5,
  "Precision": 6,
  "AdvanceNotice": 7,
  "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": "2025-08-04T18:40:21.1370417Z",
      "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": "2025-08-04T18:40:21.1370417Z",
      "ValueBoolean": true,
      "ValueAccountId": 1,
      "DependentInfoId": 1,
      "Inherited": true,
      "RequiredValue": true,
      "Order": 7
    }
  ]
}

text/html

Sample:
{"Identification":"sample string 1","Active":true,"ReferenceKey":"sample string 3","MeasurementUnitId":4,"MinQuantityNotice":5,"Precision":6,"AdvanceNotice":7,"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":"2025-08-04T18:40:21.1370417Z","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":"2025-08-04T18:40:21.1370417Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7}]}

Response

integer

Response Format

application/json, text/json, text/html

Sample:
1