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": "41369085-e241-4934-a13c-a906f3ebada8", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ce68f658-a6fd-4ac1-9851-ff13160fc7f0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "2fd95ac1-fe56-4302-a6b5-f8a51ac98916", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T13:53:29.73026-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "2d6c9b56-d22b-4872-8e8f-f395fef9440e", "Name": "sample string 1" }, "Unit": { "UnitId": "f8b98832-0532-4777-ad0e-a96e6369fc1c", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a51ae129-8aa5-4ac0-ab7d-27829299b0e6", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:53:29.73026-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "536556f0-fb54-4d02-908b-ecdc1a02c36b", "FieldId": "bd5fd417-5102-48a8-9962-c49caeb5ba44", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "536556f0-fb54-4d02-908b-ecdc1a02c36b", "FieldId": "bd5fd417-5102-48a8-9962-c49caeb5ba44", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-24T13:53:29.73026-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "8641dc46-e032-4ee8-81c5-6efd11e439e1", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-24T13:53:29.73026-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": "7277de38-3c95-41c6-8fa1-28bbd0a960c8", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0c9ad0d2-2a4a-44d5-86a5-b2ce7c580104", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a61c5f51-1573-45fa-a107-c942cf241651", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T13:53:29.73026-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "359b6af4-3f80-4006-aadc-2f4389b2d077", "Name": "sample string 1" }, "Unit": { "UnitId": "696f12a1-4210-4731-9571-20cd3cf63367", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b3b2f0c3-0639-4811-8f70-e1a702efd7b1", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T13:53:29.73026-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "2fc22b80-b74e-4b29-846d-db14d2a078bc", "FieldId": "bc65464a-350d-4d68-89f0-8ff37cdbf2ad", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "2fc22b80-b74e-4b29-846d-db14d2a078bc", "FieldId": "bc65464a-350d-4d68-89f0-8ff37cdbf2ad", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-24T13:53:29.73026-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "e11a2007-8aa1-4c79-a8c6-2f238e000885", "CreateDate": "2025-04-24T13:53:29.73026-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-24T13:53:29.73026-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }