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": "5cd69ff0-ed5a-4370-ba07-dc8bdc15a710",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "28afe0e0-0266-4d04-8be3-6f3d9fb346e6",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d78a7a82-45df-4507-9027-039e3f17a2d8",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "e069a220-4ad0-4a86-b28a-702bef97631e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "30a1cfc6-29b2-4371-8569-ff0dfcd27245",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "3ee0b360-4b46-49c7-acaa-c94569dc64e9",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "2bad1133-bc22-4923-b422-8c557c44b83d",
"FieldId": "bbc76dbf-0cc6-4d46-8199-3285f0d88c0e",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "2bad1133-bc22-4923-b422-8c557c44b83d",
"FieldId": "bbc76dbf-0cc6-4d46-8199-3285f0d88c0e",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-20T06:49:53.9210629-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "7e258f67-95e8-433c-b80f-2a9c94b59b2b",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-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": "8c0ef3a0-a95c-47ee-a21e-740a6f0eaaa8",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "29bb748b-4d4c-4884-b257-5af18e7517ea",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "133d0239-0fba-46fd-898e-38ddb44a59f2",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "2ed95332-0841-4d98-91e6-008a47b669f5",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "b543144d-8cc6-4833-84d6-c1b494070660",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "121a16d6-0fed-40f0-ab81-fe72635f2c54",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "fc6802d1-df3d-4f0d-b006-ddf11ba05a68",
"FieldId": "23a72fe8-7089-4bc6-94e9-2bb40d398f4d",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "fc6802d1-df3d-4f0d-b006-ddf11ba05a68",
"FieldId": "23a72fe8-7089-4bc6-94e9-2bb40d398f4d",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-20T06:49:53.9210629-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c7779494-662b-475a-9d3d-033b06376431",
"CreateDate": "2026-11-20T06:49:53.9210629-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-20T06:49:53.9210629-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}