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": "fb59f6df-c6d4-4e92-8882-bd862f225855",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "5f0406b3-f9c5-4a7f-8c74-2f667b755df8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f3caf2fc-7f34-4964-962a-ade4c52b3c78",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "69d703f0-7aef-44e3-b6d5-795924244970",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "835faef7-ab15-474c-86cb-5f3325df5029",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "df65dc77-7ca5-45f7-9c8a-54aa6950d976",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "dfe55649-6bf6-4de2-93ab-4b2b2129a94b",
"FieldId": "522e1bd8-4ef0-48a0-a09f-5d1962d37048",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "dfe55649-6bf6-4de2-93ab-4b2b2129a94b",
"FieldId": "522e1bd8-4ef0-48a0-a09f-5d1962d37048",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-10T13:22:15.0798853-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "19bac475-c688-4264-9e7d-ce33fcc58d25",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-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": "0ea0cf0e-eeaa-4f5e-8636-c2cdf2e8831a",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "1ab81a2f-6f0f-49d5-af04-29f4971fd9ed",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "4cfcab5d-7c16-4843-9271-2e0e83d03ea7",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "9e878966-4522-43c1-8861-055d816d1e44",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "b381c0a0-4731-438b-afc1-00f19739d7fc",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "40ce71e6-1cc2-4170-bcfc-347d9d698db9",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "02bd15f3-cc54-4f9e-9a43-23b750698be5",
"FieldId": "f8f0020e-20d3-45e9-9859-7f94bce26bce",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "02bd15f3-cc54-4f9e-9a43-23b750698be5",
"FieldId": "f8f0020e-20d3-45e9-9859-7f94bce26bce",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-10T13:22:15.0798853-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "62cc3141-5c6f-487a-9a4a-14327cb9c57d",
"CreateDate": "2026-09-10T13:22:15.0798853-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-10T13:22:15.0798853-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}