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": "05a46bd7-cc33-44bf-bd9c-eb5de28b268f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0ca4843f-369e-418c-8fe6-08e268bd45de", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4160885c-f4cb-45c1-baf5-69534f57174f", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "a5e5c992-1917-453a-ba50-92f2152b0a2e", "Name": "sample string 1" }, "Unit": { "UnitId": "dbbe08c1-bfa1-4aa6-9e1a-b5d397649039", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "cd023576-aa51-4242-a820-781eea22137a", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07: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-10-10T15:22:19.9825437-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "468781cd-8fad-4557-b78d-8d7a4f850d75", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07: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": "06b65b32-4eae-4f21-85a9-a06d86edfc88", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "37de89d4-db28-4491-8a9f-e19cfd886dd8", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "45781dd1-d4e6-4eab-989f-6588b7263203", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "f1fa7b4b-31c9-47d8-859b-611bcf58744c", "Name": "sample string 1" }, "Unit": { "UnitId": "9aaf8eeb-1b7d-4ec8-9a84-6c3faafb603a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d925d87c-6bd3-4b30-8d38-47d631eaeb23", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07: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-10-10T15:22:19.9825437-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "9e07f8f3-43b7-45b7-9a43-dfe2cec745da", "CreateDate": "2024-10-10T15:22:19.9825437-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:22:19.9825437-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }