PUT MeasurementTypes
Updates the given measurement type.
Request Information
URI Parameters
None.
Body Parameters
The measurement type to update
MeasurementTypeName | Description | Type | Additional information |
---|---|---|---|
MeasurementTypeId | globally unique identifier |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
AssetType | AssetType |
None. |
|
DataType | DataType |
None. |
|
Unit | Unit |
None. |
|
MinValue | decimal number |
None. |
|
MaxValue | decimal number |
None. |
|
MinLength | integer |
None. |
|
MaxLength | integer |
None. |
|
HasValidValues | boolean |
None. |
|
ValidValues | Collection of string |
None. |
|
FrequencyNeeded | integer |
None. |
|
ValueNeededDate | date |
None. |
|
IsAccumulator | boolean |
None. |
|
SourceSystemId | string |
None. |
|
CompanyId | globally unique identifier |
None. |
|
CreateDate | date |
None. |
|
CreateUser | string |
None. |
|
LastModifiedDate | date |
None. |
|
LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "MeasurementTypeId": "7ea9e2a1-1b91-428a-9061-45965fd8dbef", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7e34b77c-ac36-4e2c-8002-4529b9e9a56a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5b71aeeb-898c-4f6b-9535-23374bb35c80", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "559b07c1-8bfe-4e6c-bbba-f63a47cc2b7f", "Name": "sample string 1" }, "Unit": { "UnitId": "bf3b05b9-0e76-4647-a63f-d015494f55ba", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ed013cd3-ce14-4e15-bf6b-c46d2eb28d4d", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:07:43.7326443-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f35bb2b1-9ac3-4f50-b020-a91fa66a5cb2", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
On success, the updated measurement type.
Name | Description | Type | Additional information |
---|---|---|---|
Data | MeasurementType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "MeasurementTypeId": "f52eed66-96f6-4b35-afce-d2fa004e6b95", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c4092dd5-7ecf-42a3-a7b9-49b5f46ebb28", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "586e1e45-dfbf-4aac-9fe5-8baae077494e", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "68df0acc-7c44-48be-8810-b061b793299f", "Name": "sample string 1" }, "Unit": { "UnitId": "d7efba29-1152-4219-a485-e2f5efd7c882", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d884378e-5eea-426b-b0a6-7363786ea12d", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:07:43.7326443-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "a4574abc-1655-466d-90fb-97001b64bb57", "CreateDate": "2024-12-21T19:07:43.7326443-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:07:43.7326443-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }