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 string |
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": "ffa6d576-00ea-4fb1-bf97-20750286a2b3",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "70fd9285-f055-4509-b8c4-3ddf4522a14d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "994b1f25-740b-413c-b211-2cdfce8d84b6",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "356ec6c6-4038-4ced-aff2-2ba3e9ee7f7a",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "b1e41ce2-fa48-41bb-bdbb-22345e52fbf6",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "746e3b6b-a1aa-43d2-ac35-4e2c7091e2c0",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
"sample string 1",
"sample string 2"
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-03T02:03:08.6159292-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1dfda367-7a7d-45c8-ac19-c1f1e7b01656",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-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": "0df5d2a3-66f1-47e5-a696-4ddce5ebca77",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "7527c38b-da2a-464e-8a21-775aba8ed24c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1f031c4e-0017-4f0a-a149-9cb5cab284b6",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "d75a6fba-1f9d-4e20-b086-37e1441cc40e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "eb532e0d-d6e2-4caf-aa34-c2c0dad7ddfd",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "15e46591-1cc1-4063-8912-ce9b7a85a4fd",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
"sample string 1",
"sample string 2"
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-08-03T02:03:08.6159292-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "fa298918-92c1-476d-95cb-d67a391bedda",
"CreateDate": "2026-08-03T02:03:08.6159292-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-03T02:03:08.6159292-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}