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": "1523c2d8-6fba-473a-88d5-903ddff24e84",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "6da76b53-ed15-466b-a12c-d2c6c3c226b2",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "76fb1e4d-513e-45c0-89b8-72afc88bd698",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "27913397-0dbb-4f78-a93e-bf5334a17729",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "e4f0117f-591b-4424-971e-423acb95fd99",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "767325ce-70c3-4e76-a487-b787561aae39",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "dd9bc964-5b35-423f-ae94-31e7b3a55cdc",
"FieldId": "ce31bdeb-99e7-4053-a34f-7af33458833e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "dd9bc964-5b35-423f-ae94-31e7b3a55cdc",
"FieldId": "ce31bdeb-99e7-4053-a34f-7af33458833e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-11T09:51:10.8059539-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f17a8049-86e1-4c35-8ca2-b4b06f2d71f7",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-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": "90a91f91-6bb7-48ce-8f60-13f6caadd2e5",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "10fa60d3-1708-4d38-b909-6ab3b844dfbd",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "480fb968-8099-463d-9f1c-b7598b0cb60b",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "3bf36143-b6c7-4a11-9048-0d9d9794c296",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "2c478ec4-960f-4ebc-b6a7-da542e501cba",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "7216e326-7b00-4cec-9941-d6856a1e70e4",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "f87bbeaf-1bb1-47b9-af25-1b9255b6cd67",
"FieldId": "3263d270-deb1-44c1-9d85-854e9a9da977",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "f87bbeaf-1bb1-47b9-af25-1b9255b6cd67",
"FieldId": "3263d270-deb1-44c1-9d85-854e9a9da977",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-02-11T09:51:10.8059539-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a4a200ab-f874-4dd0-b14a-4c8b93cd596a",
"CreateDate": "2026-02-11T09:51:10.8059539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T09:51:10.8059539-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}