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": "6fae6a0d-ae54-4300-900e-b9d847e1479c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "96ccf618-67f4-47c9-be6f-302c7cab0100",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2da8f30-34de-43ae-8aff-fbc1b70c77de",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "f0230eb6-d8ad-46f5-afa2-16129b1ba216",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "a2f4b35e-8f83-4a45-984e-66828a3a115b",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "162c6d51-f29a-4fff-843e-78605743dab4",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "269a8583-b6c4-4f37-b4d9-f8da2217195c",
"FieldId": "0f90b50e-cf45-4403-b3c9-888e7af1b265",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "269a8583-b6c4-4f37-b4d9-f8da2217195c",
"FieldId": "0f90b50e-cf45-4403-b3c9-888e7af1b265",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-07-15T13:20:19.3836488-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "068cd866-3186-4426-80f2-1c1c48621ad6",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-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": "40a009f6-032b-46c8-9e2f-8e1a03698251",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "6ecfaf6e-62b7-4e11-9ccb-03d0e2744bea",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "d17d14d6-8a0d-4a0c-a7ae-255cc75b6ed3",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "a1428a39-485e-4ddc-9a38-8d6f43f16239",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "40938751-fad1-45a6-a78e-7c1fd5daa921",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b4b337da-293c-48cf-8070-2a4aabe100c5",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "286dbc27-31b9-4767-81e2-906ee6b8370c",
"FieldId": "e35fdf86-58c8-4fac-a135-9b0e47e78d45",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "286dbc27-31b9-4767-81e2-906ee6b8370c",
"FieldId": "e35fdf86-58c8-4fac-a135-9b0e47e78d45",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-07-15T13:20:19.3836488-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3e6a3e38-e391-4db9-b9b1-5d0d836e64e8",
"CreateDate": "2026-07-15T13:20:19.3836488-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:20:19.3836488-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}