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": "f1dfbe64-bcde-4023-a228-d4991adb6e3e",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "447093c3-372b-42d6-960c-3269ed43244f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6179e91d-daed-448f-8c07-79b104f84de3",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "7bdc1545-ab20-48f7-8f6c-756c0caa4113",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "d4cb9ca1-1d37-407a-bf7d-dc092fa5a819",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "844b1d12-5dc8-42ec-8b8e-dab872bbdeda",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "7bcd263b-ea52-43b6-8723-90cf79682a26",
"FieldId": "859871f0-ff29-48ee-84c8-b3adac8be6c3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "7bcd263b-ea52-43b6-8723-90cf79682a26",
"FieldId": "859871f0-ff29-48ee-84c8-b3adac8be6c3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-02T06:09:54.9747255-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "23f74948-8688-4e7e-bef0-83f7fef2269d",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-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": "a2cbe7f8-6df8-4559-803f-936defd51372",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "4d761418-6ff8-4c76-a7b4-710bd9b3b6b9",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1d357901-c269-4279-ad8b-0885aa25002d",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "ad1c90db-4e71-44e0-9b1e-663e936c8a6f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "ac3c3f84-a2ae-4997-8b8e-f8104a6500d9",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "ae07ec35-8319-429a-aff9-0a4752a0bb41",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3aebfc43-bc89-4881-b8b8-0066653c992b",
"FieldId": "e5757121-538e-4376-bc1c-f145ac18e83c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3aebfc43-bc89-4881-b8b8-0066653c992b",
"FieldId": "e5757121-538e-4376-bc1c-f145ac18e83c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-02T06:09:54.9747255-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e1f884fd-2ae4-4816-b2e7-dc1481a93a48",
"CreateDate": "2026-02-02T06:09:54.9747255-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T06:09:54.9747255-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}