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": "46a258ff-f6e4-42c2-a5ac-cb922432815c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "cc6c080a-8a5e-4c7a-9496-f6401d615401",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "602aa443-adc9-4340-8e2d-99be1b029102",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "0747b0c1-13b8-4644-9fcb-2c7a9c764811",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "6e6d6922-986d-4917-87d0-7efaf7468242",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "dbf5f421-beee-404b-8133-2014af9f6146",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "9f1d8296-4bdd-4531-9f3d-8d67a0d8fc39",
"FieldId": "7216bf84-28c1-4c90-abc8-145bb90d435d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "9f1d8296-4bdd-4531-9f3d-8d67a0d8fc39",
"FieldId": "7216bf84-28c1-4c90-abc8-145bb90d435d",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-05T07:22:13.4400304-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3a7189fd-c084-40ed-a115-beba885aa05b",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-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": "b06cce2e-6bb1-4a9c-8554-7a220af657df",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "be4e0ece-910d-47d1-8b4a-ae919e0d0ec7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "935145f5-5226-493f-81c3-d6978b4018ea",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "b3b770b0-c17c-4db3-b36d-79ef29f93560",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "d1784ab5-1632-43ba-8d96-7d31750bd60a",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "07f20a41-df14-4042-86ef-4058752a063e",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "555e98ff-c05e-4e04-825f-9f4c79b00450",
"FieldId": "9139d4a4-85a7-4fb1-b391-86703f6e3376",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "555e98ff-c05e-4e04-825f-9f4c79b00450",
"FieldId": "9139d4a4-85a7-4fb1-b391-86703f6e3376",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-06-05T07:22:13.4400304-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "0718b38d-f9a4-42dd-ad17-a592b0b78d66",
"CreateDate": "2026-06-05T07:22:13.4400304-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-05T07:22:13.4400304-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}