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": "1f0c508f-966f-4670-aaf1-8567a8b4e83c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "f2f7593d-9c07-49b0-a2cb-60297d245253",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "39196177-2fdf-4455-bc31-26b4735370e4",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "f2924968-c115-4e67-baf0-8bd45bddf8d3",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "604222ae-d37a-43bc-b87d-a4cf17a57577",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "388fa174-b053-44ae-a73b-78d1910b40c8",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "a30b005f-dfe9-49d0-8d4a-a3ba46c3274b",
"FieldId": "e13a658b-77ff-468f-a023-adce3c1a769f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "a30b005f-dfe9-49d0-8d4a-a3ba46c3274b",
"FieldId": "e13a658b-77ff-468f-a023-adce3c1a769f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-14T07:56:00.7504634-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d035dd8c-c075-45de-a26d-b1f4b429ab11",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-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": "1dc0250a-9bb7-4115-abbb-74094bcbac4d",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "23adaf6c-c509-4f9b-addd-5a5ab34ce04a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6a60156d-c799-4490-924b-21dbf9562bc5",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "1ff06d78-3439-44de-ba67-ed434145ce1d",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "44dcdd50-90bb-456a-984d-b2b4629284ad",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "8ae52c0d-7449-4c8a-9351-7cd038f86daf",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "ce742519-2d3d-4512-8e12-af0f884b791c",
"FieldId": "70b39306-6e2a-42b4-8913-7abb512f65d4",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "ce742519-2d3d-4512-8e12-af0f884b791c",
"FieldId": "70b39306-6e2a-42b4-8913-7abb512f65d4",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-14T07:56:00.7504634-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "49332c37-1124-4a4f-9678-2ce69b959572",
"CreateDate": "2025-12-14T07:56:00.7504634-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-14T07:56:00.7504634-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}