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 ValidValue |
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": "52272d4f-aee2-46fb-bd5c-5f1220273d1c", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4a6868f3-724b-4c44-8225-0a7c7d003e03", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f98eb7b2-ee2e-477b-aa56-12494447725a", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T02:55:48.180432-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "5a92a767-aed2-4f6a-8134-8c052c13b50c", "Name": "sample string 1" }, "Unit": { "UnitId": "8931e0b8-3174-489b-bda3-86575ce60197", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b009a6ec-751d-45d6-8b69-3cd75826795e", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T02:55:48.180432-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "27b7e7e3-73c2-4eeb-ba6f-1029425602ab", "FieldId": "481201b1-4b2c-4fa4-aa96-50ac54f518d7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "27b7e7e3-73c2-4eeb-ba6f-1029425602ab", "FieldId": "481201b1-4b2c-4fa4-aa96-50ac54f518d7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-22T02:55:48.180432-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "20a1e79d-61c1-4317-90de-4cede1ed8e60", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T02:55:48.180432-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": "f25b2d43-368e-4a0a-81cc-2c713fdcbb48", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2fea300b-5f02-4cc4-9872-ac9583055bf0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4310b625-8de4-42af-a95f-e65d56f82e21", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T02:55:48.180432-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "7e86b027-b661-43cd-a2db-062f5db65438", "Name": "sample string 1" }, "Unit": { "UnitId": "146125eb-0a56-4d65-8090-82dc777e295a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "c3ed4846-1a10-4526-ba13-ee9fa844f6e5", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T02:55:48.180432-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "a2b3d649-3882-4801-8711-57ee133362fd", "FieldId": "9d5f025e-20bd-4697-bca6-e2f29129fc42", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "a2b3d649-3882-4801-8711-57ee133362fd", "FieldId": "9d5f025e-20bd-4697-bca6-e2f29129fc42", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-22T02:55:48.180432-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "5c407f07-8179-47a2-9cad-5c05396bef89", "CreateDate": "2024-12-22T02:55:48.180432-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T02:55:48.180432-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }