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": "1efd8cf1-c8dd-4101-b5b3-4b66e20aa241",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "a848dec7-167b-4e87-9adc-b41405114d90",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "22074a88-edcc-462b-a0cc-0107fb25360a",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "d42d6bdd-09e3-4b68-beda-1ca3d62d9f39",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "e7de2d58-a1e8-40f9-b9b1-24cf5e22bf31",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f67bc15e-7ff3-4106-8dad-4f2cb7ae7eb5",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3db15d23-a3d8-439d-9803-d6abd122507d",
"FieldId": "761871fa-84b9-4c21-95e8-d645cee1491d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3db15d23-a3d8-439d-9803-d6abd122507d",
"FieldId": "761871fa-84b9-4c21-95e8-d645cee1491d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-10-09T02:02:23.9973866-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "da2259b5-99d1-4c57-b25c-a2b395484789",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-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": "2d614538-bfbd-4117-a440-74360998f632",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "62ca3756-1d24-42dd-accd-55f024f90a38",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bdf8352f-6d85-4b1a-9d6d-6c6ba5e23002",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "cc4e30df-56aa-4b75-8334-ba11316a0db8",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "6ada1b45-1821-41a6-88c2-5b04fba02dcf",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "e720ab7e-1ea9-46b3-934b-6c257f548956",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "74ead78b-4d59-4136-a5e6-9492c5f9921b",
"FieldId": "f6d1173e-11bf-4c28-9f1d-f68b4cad543d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "74ead78b-4d59-4136-a5e6-9492c5f9921b",
"FieldId": "f6d1173e-11bf-4c28-9f1d-f68b4cad543d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-10-09T02:02:23.9973866-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "683a2b86-3297-4613-9ce6-29c74e7cd89e",
"CreateDate": "2026-10-09T02:02:23.9973866-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-09T02:02:23.9973866-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}