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": "2de226c8-16bd-4279-82ca-a44a3c68e945",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "19ae3b61-2e95-4c2d-9019-b1ec6d48792c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5392e9e0-d3be-4fc5-8713-2390fd999656",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "c8f099a5-ba17-4814-a1f1-bab58274832f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "c71974b5-053b-44f4-908d-5b0633b4e6d2",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "917d3d2c-0b41-4355-85aa-8695957b6f46",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "d732eabf-c766-48ab-9738-a658d81a911b",
"FieldId": "21ddc704-523a-4925-97a8-200d5112afe3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "d732eabf-c766-48ab-9738-a658d81a911b",
"FieldId": "21ddc704-523a-4925-97a8-200d5112afe3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-17T17:25:17.3559754-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c2179c1c-1b35-48ec-a311-84e9dce8b3c1",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-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": "31cbb388-31e4-403c-9137-ea49244d7aae",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "8302551f-5fc4-40c1-ac87-a4c7f66051e8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fd35336a-a5f1-4e72-99a1-8c0e42b89244",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "014a8a38-5d76-4366-9281-9de85eeb033d",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "1bfd08c8-5002-4dcb-9e12-8e0b6dc6782d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "69eb4387-875b-4e46-ae39-f6ff20e3d761",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "96364b2d-ab21-4c3f-b858-e4fdb1ba313a",
"FieldId": "b723ae31-4444-416f-9c22-38fc3b57d00a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "96364b2d-ab21-4c3f-b858-e4fdb1ba313a",
"FieldId": "b723ae31-4444-416f-9c22-38fc3b57d00a",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-17T17:25:17.3559754-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "65506ee5-bba3-4cc8-91c5-6d302c7a6411",
"CreateDate": "2026-06-17T17:25:17.3559754-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T17:25:17.3559754-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}