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": "b63c0b92-b627-4862-ac0f-a53f35b2c59c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "7e995217-68a7-4e72-99e2-78694e3deb66",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e4368882-4b37-4ecc-9722-3cb3d8b1cdbb",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-11T01:22:32.705941-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "cdd925d6-61af-4dec-b311-18cd766fc604",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "1d0c1c58-39c7-45f8-91ae-672549676053",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f592772c-4b53-46f1-90e3-f37372c0a34a",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-11T01:22:32.705941-08: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-02-11T01:22:32.705941-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "4bb17ca5-787d-4917-ba14-598b6447add3",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T01:22:32.705941-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": "655430fc-b8c3-4848-9d21-33794c9e983c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "0e21ed24-d27c-4c62-a883-0dc8ef864a7b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "3f8a00d5-64b4-4121-ba87-fb1b07dd49f2",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-11T01:22:32.705941-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "c02c5d98-b980-4258-84d3-e64566ecbc1e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "4a776dff-d322-412a-b26b-59bc9933a5c0",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "07f462d6-6eca-4bdd-ab53-36b61527731b",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-11T01:22:32.705941-08: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-02-11T01:22:32.705941-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "30c335f6-57c9-4f1f-aa67-b3fed59bda7f",
"CreateDate": "2026-02-11T01:22:32.705941-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-11T01:22:32.705941-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}