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": "b75cc16c-3366-4776-9feb-c5bca2fca472",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "2fed0347-fdd1-4280-94a4-47e6be966850",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "40176eb9-76ac-4c93-845d-63a86a8171d9",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "451c38d8-a0ac-47d3-b73a-ac58a62ae55a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "a518e877-1b6a-47c5-921d-367addbe7469",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "90d0a4f5-ebf0-48bb-b1c3-1d1b60b16946",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "1de18ab6-c2da-4a12-a2ac-5fdacb75a1c6",
"FieldId": "d3cd22bf-0442-4f72-bc8b-bb4d9b924309",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "1de18ab6-c2da-4a12-a2ac-5fdacb75a1c6",
"FieldId": "d3cd22bf-0442-4f72-bc8b-bb4d9b924309",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-01-12T08:58:55.9642938-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c4bb034b-9c3b-476f-9a8c-afba84002344",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-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": "b0ec9310-85d2-4e10-83a2-120155328001",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b4b7ee47-968a-43b3-9c01-f140a2dcb540",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "51846cff-f823-44d3-a391-649f2979d6bd",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "be267192-6abb-471b-b0be-7ca6b736ff87",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "181b8bbc-775d-48de-9fd1-dcfad29419fe",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f58c4a9a-7580-48fd-90f8-bea28789da62",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "e99614f6-d089-4702-b863-9dc2807c7e21",
"FieldId": "841f6b07-a47e-4fef-99cb-7e7c6c0d0d1c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "e99614f6-d089-4702-b863-9dc2807c7e21",
"FieldId": "841f6b07-a47e-4fef-99cb-7e7c6c0d0d1c",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-01-12T08:58:55.9642938-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "21d35d55-86ca-408d-a5da-7bb60a4b68e0",
"CreateDate": "2026-01-12T08:58:55.9642938-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-12T08:58:55.9642938-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}