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": "1b555a2e-0a98-4824-897e-4937feb1773c",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "252db473-889e-4ae2-ae84-be3d421c9e24",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "694b77e4-ec69-44e6-aca3-f32dde052ba1",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:03:01.148656-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "869934db-6c5a-48a4-a35d-3850d90ab3ff",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "7447c6c8-a779-4af2-8ea1-cdf39d596e79",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "13dc1c3e-8e2b-4f28-93cd-bc51ccc97a37",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-10T05:03:01.148656-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "eb4b682d-fb01-49ea-980c-c74432ec7081",
"FieldId": "21f595e0-5209-4f62-946e-148bfb18db12",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "eb4b682d-fb01-49ea-980c-c74432ec7081",
"FieldId": "21f595e0-5209-4f62-946e-148bfb18db12",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-10T05:03:01.148656-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f34cf698-fd3e-41c0-b4d3-6c2e1a4d05cc",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-10T05:03:01.148656-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": "a0a4868f-c77d-4062-98aa-2e76a8beb57f",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "43ec15b7-6f09-450c-99ef-90096804e6d7",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "b9e15e34-6f50-444c-8dab-fdea27b3471c",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:03:01.148656-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "dcc6fe38-be87-48a6-9cc9-31fcfa6fdb77",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "8e93305a-5652-42ab-ab67-66896e345db1",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "de9af35a-4ee8-44a1-a9da-d07589a71873",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-10T05:03:01.148656-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "08db8e99-3f97-40c1-8cfd-e8f11834a7e5",
"FieldId": "a2669c82-7541-430d-a891-3315827287ab",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "08db8e99-3f97-40c1-8cfd-e8f11834a7e5",
"FieldId": "a2669c82-7541-430d-a891-3315827287ab",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2025-12-10T05:03:01.148656-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ba1757f4-e2c2-4660-a6ec-29d914a9050f",
"CreateDate": "2025-12-10T05:03:01.148656-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-10T05:03:01.148656-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}