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": "4a5f8013-f97b-4ecc-ba0c-97d7b9733abf",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "a504e1e6-9880-4f72-b1e8-e06210d50446",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f3b913b8-360f-4b33-a561-5de8e7b09d21",
"CreateDate": "2026-08-09T23:41:13.5530952-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:41:13.5530952-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "aed162e5-eca5-4a03-b873-ab7acde779d6",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "fd92af18-bf3a-41ff-b170-a63a664751df",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "231190b7-3e4d-4720-a562-4ff84bfee593",
"CreateDate": "2026-08-09T23:41:13.5530952-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:41:13.5530952-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "10fdd3d1-6468-409b-9ae8-2702d47b1134",
"FieldId": "cea99e72-3857-4998-b323-1b1a68f16fda",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "10fdd3d1-6468-409b-9ae8-2702d47b1134",
"FieldId": "cea99e72-3857-4998-b323-1b1a68f16fda",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-09T23:41:13.5530952-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "25fc6c37-6a2e-4b62-8c06-edf6461c323a",
"CreateDate": "2026-08-09T23:41:13.5530952-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:41:13.5530952-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": "a2e027e0-57be-4504-95e9-2745ad992bd7",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "ee6c6f54-cbf1-4b67-b002-e35161bd4c56",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "fd93355c-2dfc-46e4-82b1-60a5679a0022",
"CreateDate": "2026-08-09T23:41:13.5687742-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:41:13.5687742-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "ef2fabed-c05c-4d50-bf0a-9547ece2cf27",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "86763c2f-9105-4e85-9c9a-9cd24b96af92",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "fbcaba32-d640-42d1-abfc-5f24127bc70f",
"CreateDate": "2026-08-09T23:41:13.5687742-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:41:13.5687742-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3f8b8cf9-3b16-4dde-bef0-a354cf94bdc1",
"FieldId": "bc74efef-7c9f-43f8-9407-9d2dd917dff0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3f8b8cf9-3b16-4dde-bef0-a354cf94bdc1",
"FieldId": "bc74efef-7c9f-43f8-9407-9d2dd917dff0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-09T23:41:13.5687742-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "4ce2c5a7-ef0c-409d-8450-4aef0e22bb83",
"CreateDate": "2026-08-09T23:41:13.5687742-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:41:13.5687742-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}