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": "9c2b82d3-ca9a-414d-969b-3f79f3866a0f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "229f8044-e46d-47fb-a534-40c0045a1df5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "70b5bcb2-8f33-4208-b2e1-74bcd8e05c4a", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.9065821-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "52bfde2a-2571-48a8-a534-467c6580e827", "Name": "sample string 1" }, "Unit": { "UnitId": "1aae185d-27b4-420d-86cc-40ccfc91b244", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "daf75650-add1-40dd-ab8f-99bb6bec505b", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:15:14.9065821-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "9907bc3f-24fa-40fc-9bd6-5811b43ea5ab", "FieldId": "981a63a7-154b-4daa-990c-b0002e232a72", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "9907bc3f-24fa-40fc-9bd6-5811b43ea5ab", "FieldId": "981a63a7-154b-4daa-990c-b0002e232a72", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:15:14.9065821-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "1edaa974-de69-4af0-88c7-78a5c49d62eb", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.9065821-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": "92278147-0520-43c9-af93-a03fe26ff221", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0fbb1574-4ef2-4f49-a0e6-2eb5ba34d35f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "6066117c-5d86-4e98-bb2c-36f16f4453b7", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.9065821-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "a5f4b1fd-3530-4ffe-bd7c-4778ed340792", "Name": "sample string 1" }, "Unit": { "UnitId": "ac3eaf77-ce6b-43a6-ba8b-7c5f8874af5e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ec99e549-a47d-431d-911b-5182a1f175b0", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:15:14.9065821-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "50d86329-5e58-4fda-bddf-85e9b382b796", "FieldId": "f0c7ade7-e668-4e93-9882-f138868d5afc", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "50d86329-5e58-4fda-bddf-85e9b382b796", "FieldId": "f0c7ade7-e668-4e93-9882-f138868d5afc", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-08-29T17:15:14.9065821-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "fc9adf78-7196-4adb-a888-30cab5338aa4", "CreateDate": "2025-08-29T17:15:14.9065821-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:15:14.9065821-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }