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": "b5e7b473-2863-4a7a-9505-4d8811df7241",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "29431f8f-9f80-4e9b-8d80-6c642b298aaf",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7c63ee6a-4112-4a2a-a342-ba805a6f58ba",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "56a6bd17-39ab-48d2-9b95-1c855cdb4827",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "459d0b1e-0b3c-4908-954f-9ad573cfe2e7",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "cdf925f1-a5ad-450c-bff9-2264864a4d4d",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "1518a1cc-659a-4081-a6c7-4be41fec2a8f",
"FieldId": "309fbf8a-db69-42c6-913a-550e2563b7c7",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "1518a1cc-659a-4081-a6c7-4be41fec2a8f",
"FieldId": "309fbf8a-db69-42c6-913a-550e2563b7c7",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-23T12:18:43.7421821-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a8439e78-9788-4dcf-9227-1b37cedfb276",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-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": "ce080ecf-ab70-4a30-8231-7ad06402d590",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "1e9577fa-105f-4091-bd55-1e943ffa4086",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4c383cc0-6d59-407e-9a5f-215082364cac",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "84bbf5d9-28d3-4205-83bc-4f10bbce19f0",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8b0ecf61-d9be-4388-ae65-80d09158987d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "77de22c3-dc43-4ab4-b6e1-fe8417aa1522",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "fd67a85c-5cdb-4882-b9aa-b66c36d94f23",
"FieldId": "2976aa52-6e5b-4c68-aaf3-d4de5bfc96e9",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "fd67a85c-5cdb-4882-b9aa-b66c36d94f23",
"FieldId": "2976aa52-6e5b-4c68-aaf3-d4de5bfc96e9",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-23T12:18:43.7421821-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f98e10c6-1224-49d5-80c9-7a9c06a9a6f5",
"CreateDate": "2026-11-23T12:18:43.7421821-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-23T12:18:43.7421821-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}