PUT api/v2/consumables/{consumableId}

Request

URI Parameters

NameDescriptionTypeAdditional information
consumableId

integer

Required

Body Parameters

ConsumableUpdate
NameDescriptionTypeAdditional information
Id

integer

Identification

string

Active

boolean

ReferenceKey

string

Expires

date

ExpireDaysAfterOpen

integer

Cost

decimal number

ConsumableTypeId

integer

Infos

DeltaOfConsumableInfoNewAndConsumableInfoUpdate

UnrestrictedAccessServiceArea

boolean

UnrestrictedAccessServiceCenter

boolean

ConsumableServiceAreaIds

Collection of integer

ConsumableServiceCenterIds

Collection of integer

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Identification": "sample string 2",
  "Active": true,
  "ReferenceKey": "sample string 4",
  "Expires": "2025-08-04T18:38:53.9403377Z",
  "ExpireDaysAfterOpen": 1,
  "Cost": 1.1,
  "ConsumableTypeId": 5,
  "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": "2025-08-04T18:38:53.9403377Z",
        "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:38:53.9403377Z",
        "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": "2025-08-04T18:38:53.9413372Z",
        "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": "2025-08-04T18:38:53.9413372Z",
        "ValueBoolean": true,
        "ValueAccountId": 1,
        "DependentInfoId": 1,
        "Inherited": true,
        "RequiredValue": true,
        "Order": 8
      }
    ],
    "Deleted": [
      1,
      2
    ]
  },
  "UnrestrictedAccessServiceArea": true,
  "UnrestrictedAccessServiceCenter": true,
  "ConsumableServiceAreaIds": [
    1,
    2
  ],
  "ConsumableServiceCenterIds": [
    1,
    2
  ]
}

text/html

Sample:
{"Id":1,"Identification":"sample string 2","Active":true,"ReferenceKey":"sample string 4","Expires":"2025-08-04T18:38:53.9403377Z","ExpireDaysAfterOpen":1,"Cost":1.1,"ConsumableTypeId":5,"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":"2025-08-04T18:38:53.9403377Z","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:38:53.9403377Z","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":"2025-08-04T18:38:53.9413372Z","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":"2025-08-04T18:38:53.9413372Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":8}],"Deleted":[1,2]},"UnrestrictedAccessServiceArea":true,"UnrestrictedAccessServiceCenter":true,"ConsumableServiceAreaIds":[1,2],"ConsumableServiceCenterIds":[1,2]}

Response

IHttpActionResult

Response Format

application/json, text/json, text/html

Sample:

Sample not available.