POST MeasurementTypes
Creates a new measurement type.
Request Information
URI Parameters
None.
Body Parameters
The measurement type to create. MeasurementTypeId should not be filled in.
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": "9e30ac00-fac9-447a-9518-a79f0a855eae", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "e87b070f-5dd1-4410-9cb5-7a8acaba6f88", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2ffc32b5-9b69-409e-b464-7707bb36d9a7", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "dd6c6d34-5142-407c-8c0b-517dea870186", "Name": "sample string 1" }, "Unit": { "UnitId": "5af14deb-0c83-4ecf-8698-6c73f0594fd8", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ad81c142-b2ea-4678-92d9-6f1d163d4a29", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "515eb566-3ea9-4554-858a-276d5bb7893d", "FieldId": "39c67186-e282-4b93-b8b7-3bca081ae72d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "515eb566-3ea9-4554-858a-276d5bb7893d", "FieldId": "39c67186-e282-4b93-b8b7-3bca081ae72d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "6a9d4637-58ea-413d-8e51-7f6e8299a969", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
On success, the created 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": "653184d7-2388-49d2-bc25-00d39ffc8a11", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ceb99018-04b5-4144-b868-9c9b79c3ffae", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7d2bd654-d79a-413d-bfe7-e8102b9ee1af", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "30063170-0a77-488f-933e-476aa6d3935f", "Name": "sample string 1" }, "Unit": { "UnitId": "25b1f1d7-bbd9-46b9-b4b3-7af0dc12628e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d579bee4-c14f-4d29-a080-85c1fac64fd3", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "995e72d1-7985-48b9-9f7f-79c8abfd24e2", "FieldId": "85636f70-0d88-4286-8f93-5343cca3a78d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "995e72d1-7985-48b9-9f7f-79c8abfd24e2", "FieldId": "85636f70-0d88-4286-8f93-5343cca3a78d", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-06-02T14:50:10.5578496-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "0e79f875-831f-475d-b126-d67fb0d6af2e", "CreateDate": "2025-06-02T14:50:10.5578496-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:50:10.5578496-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }