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": "5212fcd1-294a-43a3-be68-c1966630e403",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b80c45dd-b665-49a4-b998-2167dfe05d9f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fba719be-bd6a-4a12-8aa7-7503a5009f69",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "890c75e4-8332-4ce8-98fa-71cb8d5dc42e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "ec76cd7c-96e0-4102-899e-5b79da6caadd",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "65146b5e-f564-4bab-b0dc-93217ba1036f",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "5c7ed9df-0b14-4781-b18f-a2cd8f1f2489",
"FieldId": "bca1ffff-3931-4d3e-8d6e-712928f61b6c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "5c7ed9df-0b14-4781-b18f-a2cd8f1f2489",
"FieldId": "bca1ffff-3931-4d3e-8d6e-712928f61b6c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-04-11T20:31:23.1510228-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9e77d636-904b-4f5a-ab2d-1a8726e82f21",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-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": "b7b53805-99b1-491d-ad21-805841f41d52",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "acbca850-3032-4b98-a642-04cb6392bebe",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0c21e3a6-6ae4-4e86-bd74-ba010ede5455",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "1a18764f-e741-4d1f-b7f0-d608b83f706d",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "78c7188b-33e3-4e0e-88a9-d310b0d9ac5a",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2f5a725c-a88a-418d-a832-435b5598ef25",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "ad6162c1-be88-4440-8db3-4d545a5c111c",
"FieldId": "7880458b-fb07-4fca-87b0-d7732339033d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "ad6162c1-be88-4440-8db3-4d545a5c111c",
"FieldId": "7880458b-fb07-4fca-87b0-d7732339033d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-04-11T20:31:23.1510228-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c53a06c7-a000-4f45-ba6f-18fcf3f12665",
"CreateDate": "2026-04-11T20:31:23.1510228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-11T20:31:23.1510228-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}