DELETE MeasurementTypes
Deletes the given measurement type, including all measurements of that type.
Request Information
URI Parameters
None.
Body Parameters
Measurement type to delete
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": "1b1af4a9-dce2-4b04-848b-e09091adb1c9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7194b006-33af-44ef-a18c-e7da94849f15", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "53f2119d-7da5-464a-9bb5-f6ba656ccf56", "CreateDate": "2024-12-21T19:32:47.7888878-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:32:47.7888878-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "a2e3532f-6c95-4906-93b9-5b7213d8a0ac", "Name": "sample string 1" }, "Unit": { "UnitId": "1f9ba3b0-b7c3-4a8c-8dc3-566dcb9c6ba6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e25f346b-c01d-4425-bfae-eff91dbee081", "CreateDate": "2024-12-21T19:32:47.7888878-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:32:47.7888878-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6dfe2f49-ac47-4ed5-8d02-eee9a5a20da0", "FieldId": "92ac88ad-5f70-4dae-86ac-0b412c692cfa", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6dfe2f49-ac47-4ed5-8d02-eee9a5a20da0", "FieldId": "92ac88ad-5f70-4dae-86ac-0b412c692cfa", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:32:47.7888878-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "7a4982ad-9cea-40ab-a00a-386b907e7e67", "CreateDate": "2024-12-21T19:32:47.7888878-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:32:47.7888878-08:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
Name | Description | Type | Additional information |
---|---|---|---|
Data | Object |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": {}, "Total": 1, "Message": "sample string 2" }