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": "cffbd6b7-ad33-4cf2-a270-30ee167ea6ac", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "cf429d88-7540-4d19-a0ca-5c7683e3ce1f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "83b3c9c5-d606-4061-a200-89e778baba8d", "CreateDate": "2025-04-03T18:16:25.9546774-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T18:16:25.9546774-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "16aecb4b-b32a-48d2-a5ba-e26d508190fe", "Name": "sample string 1" }, "Unit": { "UnitId": "f2adb9cd-15ee-4d6a-9278-c85d87158b59", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "9d570c67-e8e6-4878-9052-b7aad90524c9", "CreateDate": "2025-04-03T18:16:25.9703054-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T18:16:25.9703054-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0ca265ec-b819-419f-b62b-93edfb0ecfe1", "FieldId": "d9be390d-6e60-407e-bf51-608f62b66c10", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0ca265ec-b819-419f-b62b-93edfb0ecfe1", "FieldId": "d9be390d-6e60-407e-bf51-608f62b66c10", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T18:16:25.9703054-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "88989593-4309-458d-8aad-65f7b0e386ec", "CreateDate": "2025-04-03T18:16:25.9703054-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T18:16:25.9703054-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": "9d20b2d3-d830-4d0b-93fa-f1d0fc5456ce", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4c391271-57f9-4db1-a295-aa4cb4e6e711", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c8312a9a-9890-49ca-84ca-c5a379c036b4", "CreateDate": "2025-04-03T18:16:26.0328051-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T18:16:26.0328051-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "45fc2b75-1b8d-4e5b-9e8d-42ef182e9437", "Name": "sample string 1" }, "Unit": { "UnitId": "cb4e8951-479d-4a0a-a085-d903981a6c44", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5b925923-2ffc-48e1-a152-0e61cb38e767", "CreateDate": "2025-04-03T18:16:26.0328051-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T18:16:26.0328051-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8a19c48b-da8f-4515-b357-65cfe5816fc8", "FieldId": "f512e1f0-257f-4c79-8e83-9c324f1c1d73", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8a19c48b-da8f-4515-b357-65cfe5816fc8", "FieldId": "f512e1f0-257f-4c79-8e83-9c324f1c1d73", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T18:16:26.0328051-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "bedb13ec-98f5-4af6-a3b5-72f8bdc97960", "CreateDate": "2025-04-03T18:16:26.0328051-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T18:16:26.0328051-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }