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": "e4ab03b0-735b-497f-98f8-ba9885b2f1dc", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ca33f10a-faf4-4aab-a40f-2b978cd1d4d9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "54a6efe0-2613-4add-91fe-ec0ae5af2e6a", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "d0b65100-e0b5-4191-ba83-5d500f5fe484", "Name": "sample string 1" }, "Unit": { "UnitId": "ed88ef23-8409-433e-b422-3e0969187d53", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "64988e1e-cc01-4577-89b7-615c871d78bd", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0d65d8ac-4fa6-452f-be87-e446890a606c", "FieldId": "a9dac9ce-ccce-45a5-a22d-49842822bf73", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0d65d8ac-4fa6-452f-be87-e446890a606c", "FieldId": "a9dac9ce-ccce-45a5-a22d-49842822bf73", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-02T11:11:42.2985302-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "02df39ac-ba96-485d-a55d-66bf7e3e6408", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08: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": "ed6cd9f9-2b62-45d9-a030-903c60bda775", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "fc19435c-14b6-4f4f-a686-d7b5227a9b5e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f2731c20-1c50-41ae-832f-e925cad39e33", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "bbdef3d2-7cce-4a96-b3e9-4bc23e9eeb73", "Name": "sample string 1" }, "Unit": { "UnitId": "1f16219c-0bcc-46e4-b6a9-102fe705fbf4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "cad0b6df-4b64-4040-ae0c-e3fc57607508", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0cd40a87-1da1-4015-8515-f806d975dd24", "FieldId": "3b7c69f4-ded4-4fb6-813b-7f993ef6725b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0cd40a87-1da1-4015-8515-f806d975dd24", "FieldId": "3b7c69f4-ded4-4fb6-813b-7f993ef6725b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-01-02T11:11:42.2985302-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "ccf69b87-b741-4bb0-94fb-abb0c01dcc2f", "CreateDate": "2025-01-02T11:11:42.2985302-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:11:42.2985302-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }