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": "6760647d-a19b-4196-b80f-909e5ff45651", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "cc445432-8419-46e4-aac1-8bb1de538443", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e5e1c2a0-3c3c-4acc-91fb-5033969aebb1", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:51:54.4869414-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "8d283779-4dc4-4ded-8030-1d05854759bc", "Name": "sample string 1" }, "Unit": { "UnitId": "5c132f74-082e-4ae3-a5be-0b5ae051ddcd", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "633c9c0d-7ac6-493a-ad37-ff100dd56725", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:51:54.4869414-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "71dd4833-6bdb-4e77-9994-0772855a2be4", "FieldId": "d98f600a-32c1-4a6b-bf8d-fa591084f345", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "71dd4833-6bdb-4e77-9994-0772855a2be4", "FieldId": "d98f600a-32c1-4a6b-bf8d-fa591084f345", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-30T16:51:54.4869414-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f7787644-ece2-48e3-8cc8-a3556a1b494a", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:51:54.4869414-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": "7e188f92-8dfb-48d4-90e8-473e3285db7b", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "742fe76b-8722-4c33-901b-65c2d3b0dcd9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e2e557a3-563e-4911-b0d1-03716071f5f9", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:51:54.4869414-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "ac191bd6-0d6c-406f-ad25-b8f707bf9c59", "Name": "sample string 1" }, "Unit": { "UnitId": "44e530df-0210-4192-982c-4fa6e6e8ded2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e9b1737c-e2bb-4603-a29e-5419513e8289", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:51:54.4869414-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "225fedc3-e5dd-4bcc-b56e-466972777dc2", "FieldId": "94d6c192-267c-4781-8824-1f48779692ea", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "225fedc3-e5dd-4bcc-b56e-466972777dc2", "FieldId": "94d6c192-267c-4781-8824-1f48779692ea", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-30T16:51:54.4869414-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f0599b5a-6955-4d6f-82e7-c3e8341fd526", "CreateDate": "2025-01-30T16:51:54.4869414-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:51:54.4869414-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }