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": "029d6cf7-d1ab-4eab-bddb-6309d51f1226",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "6cd0484c-cdd5-49e5-ad42-085860b4f9b5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "16bbd379-5264-4daf-a90c-1137bd8709a2",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "b20ac128-516c-4368-b1ce-1179ee16c68f",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "6c92a6b8-c223-475e-9f86-2bf8927c1210",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "bb9173bc-6320-4f2d-9d3c-769d98cb4c19",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "bb335d16-7ac4-4142-9210-fa98b6ee95fa",
"FieldId": "579484ef-2e3d-4d3a-a82a-7e26e66f04cc",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "bb335d16-7ac4-4142-9210-fa98b6ee95fa",
"FieldId": "579484ef-2e3d-4d3a-a82a-7e26e66f04cc",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-01T15:13:12.3241293-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "fd581017-7fdb-42aa-a797-1b7fd0442827",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-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": "30f7bd92-60b9-45a9-809a-172331a7f756",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "f42eebf2-98fe-403b-8932-8b1fc49319a4",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5ea982d7-2762-4f24-9334-f7388e5dd382",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "8a599108-7102-42ca-89ab-e399b4c54909",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "969f7f1f-b4e0-47fe-babb-345fd7a0e081",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "cc259607-b54a-4f07-85a3-87df37fabbb0",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "0bbf5193-a8c9-4b1a-9bb7-401e79e6f18c",
"FieldId": "0184f5c2-6550-4926-93f4-6dcd525bf17f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "0bbf5193-a8c9-4b1a-9bb7-401e79e6f18c",
"FieldId": "0184f5c2-6550-4926-93f4-6dcd525bf17f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-01T15:13:12.3241293-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "feaf5d6e-fa09-47ae-8a32-bbac444a2bdb",
"CreateDate": "2025-12-01T15:13:12.3241293-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-01T15:13:12.3241293-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}