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.
MeasurementType| Name | 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": "186a35e0-3891-41ad-8d6f-d68070c97dab",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "06d91cb2-3edc-4478-a187-434de990ee5e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9e82a68e-c63b-4f4e-8775-202862f27c49",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "ac1b4835-5ba8-43bd-955e-072f6c7f1f9f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "2be20633-87bd-4d3b-b5e2-d1dfd1094899",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "d300e746-84e4-4aa1-a54e-2ffca1d4061f",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "c58f2cef-8b0b-4e38-960c-c759cf679e1b",
"FieldId": "f8464b9d-6cf3-4e09-82de-9a2346805df9",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "c58f2cef-8b0b-4e38-960c-c759cf679e1b",
"FieldId": "f8464b9d-6cf3-4e09-82de-9a2346805df9",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-10-04T02:39:51.8617161-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5c2bb3a8-36e0-44c9-aa7d-97a1bc0389e1",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-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": "97326bbe-398c-4f40-bc70-793b08de8940",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "12e23037-07b6-4ecf-9255-6d5be582d008",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7580b991-b2f8-473a-848a-e6a41edfa16c",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "90f4bcaa-6452-4163-8da9-6d77d83e09d0",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "886e4353-a805-4b98-b098-036ecb029f2b",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "705dcb2e-abd9-4377-bd3f-a8ba9e7c4bd2",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "b0828032-28ea-4fd3-a18c-f0faf5f487ca",
"FieldId": "431013ec-f429-4f2d-9423-1a269126361f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "b0828032-28ea-4fd3-a18c-f0faf5f487ca",
"FieldId": "431013ec-f429-4f2d-9423-1a269126361f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-10-04T02:39:51.8617161-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3cc0ed20-31db-48ed-8a8e-53698a1d93fb",
"CreateDate": "2026-10-04T02:39:51.8617161-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:39:51.8617161-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}