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": "f144068a-df8f-4c2f-a763-64e5a845adc3",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "55cea17a-5880-420c-83fd-b59a41de40d9",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "86d5a1e9-1a14-4e74-b295-f5ebb824ffed",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "ea51d80e-1c71-45f2-a59a-fdaf9a130ede",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "777bbe3c-b434-462a-ae2a-6a2d6ac3767c",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b5a69f19-5ce6-430e-94e0-b1bbc020b38f",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "498d080a-db14-401e-a6c2-c4c2f3dcb24c",
"FieldId": "895250a6-61d7-48eb-8978-142d2c8d9705",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "498d080a-db14-401e-a6c2-c4c2f3dcb24c",
"FieldId": "895250a6-61d7-48eb-8978-142d2c8d9705",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-01T08:53:58.8640116-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6052fdab-2c45-4b6e-8e89-971dd5383908",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-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": "4065cd06-8108-4a5a-b911-13ddfdaeff90",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b758861e-0bce-4f4a-806f-75b5fc195cc1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5b37609b-24c2-4112-a268-f6c9878dbf11",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "350e4e69-2709-4ccc-97a1-fc6e9bc63873",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "bb2ad867-75f2-4ad4-b16b-bb4809881cd5",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "455b4cc2-3a1b-49c5-8de5-617a18ac0d96",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "a91eadf8-0442-4125-a3a0-d81cd50e2b65",
"FieldId": "bc2f6576-fd51-45d7-b8d1-caa7dffe9bac",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "a91eadf8-0442-4125-a3a0-d81cd50e2b65",
"FieldId": "bc2f6576-fd51-45d7-b8d1-caa7dffe9bac",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-01T08:53:58.8640116-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b13f5a4a-bfa2-4455-8a53-93ae2fe77c39",
"CreateDate": "2026-11-01T08:53:58.8640116-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:53:58.8640116-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}