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": "a589050a-d4d0-49a2-a8f1-5d01592fcde9",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "3b9c3d6a-5de7-49f1-84d1-a7711181d46e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ecf152ef-3896-46a9-b35b-d6f99cf8edfa",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "b7386981-d717-4cbd-8682-2663c15ca900",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "fec64afb-09e1-4d9d-9363-a8cec14f5dbe",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "c770de07-9853-48e8-9f6f-838dc34808d0",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "762dd2a4-f0a4-423e-aa51-89defdaca374",
"FieldId": "98a888b7-9428-41c0-b6b5-524d5d9e10f8",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "762dd2a4-f0a4-423e-aa51-89defdaca374",
"FieldId": "98a888b7-9428-41c0-b6b5-524d5d9e10f8",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-05T05:05:28.1454925-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "04736b20-c9c5-45f0-9b8c-37e94017513f",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-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": "d1103dcd-64de-498e-9c5d-c998ed09ad13",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "b04fcb56-3e4f-4fb6-9fed-56bd6ae611fb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6d60b406-3f2c-42da-a9c9-5b1404493e20",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-08:00",
"LastModifiedUser": "sample string 7"
},
"DataType": {
"DataTypeId": "49a25d06-64fe-4212-8688-cfa9647111d6",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "69d6a6a5-0494-46a4-a667-a49efb1f7940",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "581cbf7d-4d98-4d75-8a70-9442252bc761",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "73e8d552-e52f-4ed0-b84a-0f8e5f8b0ebf",
"FieldId": "a251a05c-cd55-4116-a608-4eb157b7f937",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "73e8d552-e52f-4ed0-b84a-0f8e5f8b0ebf",
"FieldId": "a251a05c-cd55-4116-a608-4eb157b7f937",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"FrequencyNeeded": 1,
"ValueNeededDate": "2026-11-05T05:05:28.1454925-08:00",
"IsAccumulator": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f414a2f2-1ab0-4941-bdd2-07bfb6ce8bc4",
"CreateDate": "2026-11-05T05:05:28.1454925-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-05T05:05:28.1454925-08:00",
"LastModifiedUser": "sample string 8"
},
"Total": 1,
"Message": "sample string 1"
}