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": "23dac5ca-a915-406e-9ede-9923781028c8",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "553c3ed5-ac26-47ac-8f5d-69a5f369a540",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9b858fdc-984e-4d44-8823-53a3cf482015",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "4ccfe60c-67fd-40cf-8f57-bec773e3e13e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "ce83cf00-2e4f-4f73-bb9a-57b8bbdc898e",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "bcd4dc28-00c6-4786-991b-4a4a45536ce5",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "0cdd0b64-5cd3-451b-8d49-658ff230ec45",
"FieldId": "322e2889-9067-4255-a3d7-6434f389865c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "0cdd0b64-5cd3-451b-8d49-658ff230ec45",
"FieldId": "322e2889-9067-4255-a3d7-6434f389865c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-03-14T13:17:50.1474845-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "36927d94-b094-4437-85a3-7634d2fb7dec",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-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": "716bb913-5315-4063-afce-af711ae5167c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "f1cb18f4-df3d-4bed-a678-ed1c56c168f3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7656ee31-0f62-400f-80f4-4c637e6cef89",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "9be76292-0d11-4781-8bbe-16e023b40bf0",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "04b1b98a-5494-4c56-a9c5-97452684ea51",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2ac03183-ec9a-4b32-8818-7188f379cefb",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "13f3771e-0d57-4499-8ca6-eb2034a93778",
"FieldId": "f78546c9-fc20-49d6-a3cd-bc714c61ec00",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "13f3771e-0d57-4499-8ca6-eb2034a93778",
"FieldId": "f78546c9-fc20-49d6-a3cd-bc714c61ec00",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-03-14T13:17:50.1474845-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "0dac1cca-41d1-49fb-ab3b-c8786eb1354f",
"CreateDate": "2026-03-14T13:17:50.1474845-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-14T13:17:50.1474845-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}