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": "3213c0a1-72b9-4cbb-a2f3-f68c23671aff", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7c0e142d-705d-40e9-a2a6-89dd28411794", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "1dd7aaae-6591-4b8d-b0a3-eaabd3088c02", "CreateDate": "2025-08-29T17:15:14.0784601-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.0784601-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "baff23b4-3252-4f34-9757-30ed8a09fb3f", "Name": "sample string 1" }, "Unit": { "UnitId": "43e8bef3-9855-472b-8ef5-604150b5a916", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "8a35f8f5-c66b-43c4-a516-dfd1de947fe6", "CreateDate": "2025-08-29T17:15:14.0784601-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:15:14.0784601-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "748a73e9-f8bc-452c-84ab-bd052a1703e0", "FieldId": "d3af5fd4-d545-4537-9d46-3045831ce9ce", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "748a73e9-f8bc-452c-84ab-bd052a1703e0", "FieldId": "d3af5fd4-d545-4537-9d46-3045831ce9ce", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:15:14.0784601-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "cb8b2b80-c3b0-4883-a127-b189c0992cc1", "CreateDate": "2025-08-29T17:15:14.0784601-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.0784601-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": "0d837c02-d940-4a0d-bd26-897de65a7b7a", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "397e68c5-8466-4764-9e99-bf87b93ac5f9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ae77081f-3f17-4925-b515-b81f99650855", "CreateDate": "2025-08-29T17:15:14.0940277-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.0940277-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "46958172-9846-4312-a9a5-3b5a600b7927", "Name": "sample string 1" }, "Unit": { "UnitId": "fd66a067-2990-48da-94ae-24ec85d57ee7", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4f82ee8b-ac20-4518-b494-83768c7c6c40", "CreateDate": "2025-08-29T17:15:14.0940277-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:15:14.0940277-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "07d19b53-5896-4f3e-83b3-da8bb14e38ca", "FieldId": "8e979eca-5391-4318-853c-9f7ba6b0adf4", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "07d19b53-5896-4f3e-83b3-da8bb14e38ca", "FieldId": "8e979eca-5391-4318-853c-9f7ba6b0adf4", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:15:14.0940277-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "2349b37a-4509-4181-ab80-a7b8fc2c25c0", "CreateDate": "2025-08-29T17:15:14.0940277-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.0940277-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }