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": "9cd9f802-4ca6-444f-a3cf-98db82e325d0",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "bdfa043f-22d0-4fae-b0bf-6af8b18a780c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "59dc2da1-54b1-46da-b1af-b46013cb9938",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T13:57:30.486684-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "d2a1d7c6-d882-4bc2-a913-2b3da744cc2a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "789e542f-1de2-415a-8425-26a4df2777af",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "a4179bde-a273-4b22-92ed-114991919ecd",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-26T13:57:30.486684-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "6899eaf9-9812-48e9-a1ba-3305514c689d",
"FieldId": "80dcac66-57c4-4c61-b128-f5a0cfa500bd",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "6899eaf9-9812-48e9-a1ba-3305514c689d",
"FieldId": "80dcac66-57c4-4c61-b128-f5a0cfa500bd",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-26T13:57:30.486684-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "49ce9e19-479f-4e74-9c2f-07da14ae5bb1",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T13:57:30.486684-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": "61f190ea-03b4-4d01-9630-ac80a80b4884",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "bc9302c5-291d-41b4-b807-3b5f028cd121",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "64af57df-d8dd-4fb9-9abf-660ed9eaed7a",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T13:57:30.486684-07:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "7a2ec967-ecbf-4892-9873-5b98e6e007ed",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "f2890f2f-bc0f-4508-9316-0905ff74fc7c",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "04517476-caa7-48a2-9dc3-0726c0a92269",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-26T13:57:30.486684-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "263cc891-91ee-47d2-8ec8-9befa617cb0d",
"FieldId": "e2e9502d-917a-4d55-9f45-41d977dfde6e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "263cc891-91ee-47d2-8ec8-9befa617cb0d",
"FieldId": "e2e9502d-917a-4d55-9f45-41d977dfde6e",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-26T13:57:30.486684-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1616a043-863e-4b57-a41e-5dc0df26c856",
"CreateDate": "2026-09-26T13:57:30.486684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T13:57:30.486684-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}