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.
MeasurementTypeName | 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": "dfb2bea7-bbcf-4f7a-822d-f3f62e299c0c", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2047d00e-572e-4cab-afe2-4a7e5d5e8d10", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "85d6af6c-1c0a-4dc3-91b4-3f982453e4df", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:18:24.5720233-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "d7612b22-06a8-4d58-8ca5-6b8719b01bc9", "Name": "sample string 1" }, "Unit": { "UnitId": "63fb0a01-c4da-4a83-bb14-5b090ffacfbc", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7737762d-1181-4d85-a1b3-c0c132fce1fd", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:18:24.5720233-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0adbf3b2-6e99-4654-9973-a889f4df7ca9", "FieldId": "bc06091b-2944-4322-84c8-a1b6eddbfe43", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0adbf3b2-6e99-4654-9973-a889f4df7ca9", "FieldId": "bc06091b-2944-4322-84c8-a1b6eddbfe43", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T15:18:24.5720233-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "04a62fe9-5ec4-44bf-8e23-bd5675953b8e", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:18:24.5720233-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": "588286ed-3d05-48a4-b039-5e34e93972a2", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ffab1310-e16c-4f0a-84fa-ec718c79db4f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "69b46587-fc9b-466b-aeec-e86bd48e993e", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:18:24.5720233-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "77381de2-29f3-4616-a8ff-c3aff37da3e5", "Name": "sample string 1" }, "Unit": { "UnitId": "aa1b715a-1fc5-4011-9d8f-dd90cf245088", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "26575834-c9e7-4522-807d-71c554dad2de", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:18:24.5720233-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6644cc61-b9e9-4ac7-be9e-8cf0f6bc51b8", "FieldId": "1accbcff-1a5d-4351-9bee-f22fc780d787", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6644cc61-b9e9-4ac7-be9e-8cf0f6bc51b8", "FieldId": "1accbcff-1a5d-4351-9bee-f22fc780d787", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T15:18:24.5720233-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "68297d9d-640b-4981-9bf7-5afbd3781878", "CreateDate": "2025-04-03T15:18:24.5720233-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:18:24.5720233-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }