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": "83549dd1-5ea9-4d01-857a-152d14ebaaa9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "fe8119e5-c00e-4e00-b31b-f2d67bd17cf4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "8004a3e5-0e25-4604-a9fa-a17c004581fa", "CreateDate": "2024-12-03T09:50:01.879742-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-03T09:50:01.879742-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "a3897f28-89d4-4a16-8671-a72c96b5bb31", "Name": "sample string 1" }, "Unit": { "UnitId": "74c9ff7b-f2ea-4b6f-94f5-dcf96defed95", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3ff27066-4a04-4d46-90a9-b4fcc2a2744d", "CreateDate": "2024-12-03T09:50:01.879742-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-03T09:50:01.879742-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3f490244-ded0-4d21-9e6a-67fd00bfe216", "FieldId": "48a4aab7-f460-47f2-a7a9-511913c3dce2", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3f490244-ded0-4d21-9e6a-67fd00bfe216", "FieldId": "48a4aab7-f460-47f2-a7a9-511913c3dce2", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-03T09:50:01.879742-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "d6cf3134-19cf-4e71-a2ad-74389fa802cc", "CreateDate": "2024-12-03T09:50:01.879742-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-03T09:50:01.879742-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": "249538be-44d6-42c0-8e8a-33e94de0b7ce", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c1f4bc33-d6bd-404b-a0a7-485966b31282", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "82f53c05-c665-4194-aac7-0f437d3200ab", "CreateDate": "2024-12-03T09:50:01.879742-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-03T09:50:01.879742-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "36fbd119-0364-4030-8ffc-481520c506ba", "Name": "sample string 1" }, "Unit": { "UnitId": "fad1a910-438d-47d2-9196-4e91a57953b2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "9cb46d60-535d-4ad8-941f-103f5af7a12d", "CreateDate": "2024-12-03T09:50:01.879742-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-03T09:50:01.879742-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "b484e3fc-68de-4ef5-9ea4-e53360312157", "FieldId": "7352d748-d34a-4e11-b99b-a5eb70aca79f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "b484e3fc-68de-4ef5-9ea4-e53360312157", "FieldId": "7352d748-d34a-4e11-b99b-a5eb70aca79f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-03T09:50:01.8953667-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "49b0b1e2-66d9-4615-852c-0bcb98be444f", "CreateDate": "2024-12-03T09:50:01.8953667-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-03T09:50:01.8953667-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }