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": "40b891fb-e1d3-42e2-aa8e-a448f3c70371",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "c5fc5e25-f666-4164-8277-e05f16b9690c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "118c81e7-85fc-48da-9220-2a1b9e70837a",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "e4cb2b06-b630-4dda-86d1-a308684d9214",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "b18dd022-6f58-420c-acd9-29f2ef1282b6",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "2fb992c9-1455-4b0f-942f-e76d60428572",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "ed599139-ec6d-4f63-8c38-9292ff721ca5",
"FieldId": "f5e04a0e-131a-42d7-b4c9-ea5f491cb0e0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "ed599139-ec6d-4f63-8c38-9292ff721ca5",
"FieldId": "f5e04a0e-131a-42d7-b4c9-ea5f491cb0e0",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-29T15:03:28.7781814-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f0f3a06b-7b39-407e-a900-cb5bbb104f2c",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-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": "9300e9ec-6454-47bd-9e7e-4371e944fb2c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "1631efe0-140c-443d-b405-f2c108e8908a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6353202f-b251-45dd-a8f7-efc41ee1a73e",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-07:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "31961af6-49ea-4938-af59-a2f1bcc8a995",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "63d542cf-bd76-404a-9ba9-644a2ec9c152",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "401033df-f656-4510-ac23-082a5fcd7e26",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-07:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "e9952f20-f070-4b67-8f7d-5ec47d5beb78",
"FieldId": "77d71eaa-e47f-4a16-9f98-bc48972bcd02",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "e9952f20-f070-4b67-8f7d-5ec47d5beb78",
"FieldId": "77d71eaa-e47f-4a16-9f98-bc48972bcd02",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-09-29T15:03:28.7781814-07:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e38501c2-fb74-41dd-bc46-368d32c240c3",
"CreateDate": "2026-09-29T15:03:28.7781814-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-29T15:03:28.7781814-07:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}