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": "ac882cdc-4d26-4cc6-8028-e0cdf3a30c76",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "1637da1f-627c-49a1-a3df-b509f9ce280c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5a383968-6cae-4c36-926e-9efccb94ac74",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "7d2453a0-3fbe-4412-84a1-2410b55c3700",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "71c377fc-e6cc-42b9-9d35-6232a3b30e29",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f976c478-2212-4c18-856b-44d1605b3c76",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "021b89fd-34ca-4bf5-b027-906e33479b75",
"FieldId": "359ffc0e-a773-48a1-a12a-c7312771be35",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "021b89fd-34ca-4bf5-b027-906e33479b75",
"FieldId": "359ffc0e-a773-48a1-a12a-c7312771be35",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-09T23:26:21.2538922-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f4dd607a-b426-4efb-ad75-5e596988ced8",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-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": "610f4df9-2fab-4c8a-884f-89c29febf872",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "637cc84f-948a-4d62-9fa3-8e887e9e2de6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e9c35e41-b2cd-48c0-bce7-b4f96e19326d",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "b9b99d6f-8fb3-4dfe-8a79-db8c1d653a58",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "74960432-a4ee-4c87-8fed-971bffbe0013",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "7c640002-8a11-457b-bc49-96a193b6b03c",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "43f1332b-ee3e-4a6c-a576-50608ddbb5cf",
"FieldId": "d8a37732-5239-4486-9ba9-e5814edac644",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "43f1332b-ee3e-4a6c-a576-50608ddbb5cf",
"FieldId": "d8a37732-5239-4486-9ba9-e5814edac644",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-09T23:26:21.2538922-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5b0b876e-f6d0-4eb4-a734-440dc1fc8477",
"CreateDate": "2026-08-09T23:26:21.2538922-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:26:21.2538922-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}