Updating Machine’s Attribute
Use the Bulk Update Machine Attributes endpoint to update specific machine attributes. Provide theMachineID as a path parameter, along with the attributes you want to change as body parameters, as exemplified below:
Request
Replace
<MACHINE_ID> with the actual machine’s unique identifier, you want to update the attributes.| Name | Type | Description |
|---|---|---|
DeviceAttributeID | int64 | A unique ID that identifies the specific attribute of the device. |
MachineID | int64 | The unique identifier of the machine associated with this attribute. |
DeviceAttributeValue | string | The value assigned to the device attribute. |
DeviceAttributeCodeID | int32 | The code identifier that categorizes the device attribute. |
DeviceAttributeName | string | The name of the device attribute being modified. |
DeviceAttributeGroup | string | The group or category to which the device attribute belongs. |
DeviceAttributeReadOnlyBit | boolean | Indicates whether the device attribute is read-only. |
Response
isFullySuccessindicates whether the update was entirely successful (trueif successful,falseif there were any issues).failureItemsis an array of any failed items, where each entry includes:id: The identifier of the failed item (e.g., attribute ID).error: A description of the error encountered during the update.
If
isFullySuccess is true and failureItems is empty. The update was completed successfully without any errors.