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": "6972bfd4-58bc-4b0f-b711-afc46fd4a1c1",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "fded399b-82b8-49c1-ac28-858df37bb954",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1985e5b3-cdcb-480a-bac6-7942ba84d0c5",
"CreateDate": "2026-06-10T22:16:35.1220024-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-10T22:16:35.1220024-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "1862722d-87f9-4a4e-8174-30608697c3e3",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "193453ab-cb98-4049-8d1f-4a3a45fb762c",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "e8ed4fed-6b15-4369-bb01-a91c146ac740",
"CreateDate": "2026-06-10T22:16:35.1220024-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-10T22:16:35.1220024-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "cd957237-6115-4320-a9f7-32f8a017c233",
"FieldId": "a91e9b34-0cbd-4f29-b574-c76c60ed01cb",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "cd957237-6115-4320-a9f7-32f8a017c233",
"FieldId": "a91e9b34-0cbd-4f29-b574-c76c60ed01cb",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-10T22:16:35.1220024-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1b2bc207-33b4-46d8-a0e7-b0cb5fe625de",
"CreateDate": "2026-06-10T22:16:35.1220024-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-10T22:16:35.1220024-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": "011a0ac2-28bf-48e1-a0d1-a8ceec93adf0",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "c281c858-2747-46c0-b7a4-017b724f5d4a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "8d891521-7cdb-4191-be3b-6b0212c19e48",
"CreateDate": "2026-06-10T22:16:35.1375973-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-10T22:16:35.1375973-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "2fe37159-63a9-4603-bace-b65831f438ce",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "183d3e72-180a-4607-8509-1187f9eb21de",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "5e754432-368d-45bd-bdb9-5ffc53178317",
"CreateDate": "2026-06-10T22:16:35.1375973-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-10T22:16:35.1375973-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "b55590e5-adcf-45e1-81d7-622db21c19bf",
"FieldId": "8c278ecc-2c21-41a5-a852-ccd44eb2f7ce",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "b55590e5-adcf-45e1-81d7-622db21c19bf",
"FieldId": "8c278ecc-2c21-41a5-a852-ccd44eb2f7ce",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-10T22:16:35.1375973-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b6770221-c5f3-4e5b-b8d3-5cabcaad7c65",
"CreateDate": "2026-06-10T22:16:35.1375973-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-10T22:16:35.1375973-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}