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": "7e4353f5-4e7c-4276-b8a0-3a7637d4ca34", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "cc7a4b59-c6ee-4c49-8f1a-25c9f9bfd035", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "36c15b45-7652-41e8-ab86-029e146470fb", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-22T14:55:13.5910827-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "6a29c74e-6dab-4457-bd4b-3106766a467e", "Name": "sample string 1" }, "Unit": { "UnitId": "55d30623-3df2-4814-aabd-f3397c4d4719", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "59b1e88c-9038-4a81-8e90-c3a17e15a353", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-22T14:55:13.5910827-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "9b4614bf-2fec-4f49-8784-1196bec6ae8d", "FieldId": "be6df8c1-d4a6-4724-8693-3e4272beb0cc", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "9b4614bf-2fec-4f49-8784-1196bec6ae8d", "FieldId": "be6df8c1-d4a6-4724-8693-3e4272beb0cc", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-22T14:55:13.5910827-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "624caabd-1d23-4b5a-a5fa-85b96c17ed23", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T14:55:13.5910827-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": "5af4fd9e-67e7-4449-9baf-0dbdc5f9af42", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "cc2e4ec7-e3f3-4127-8b1d-8c0af45bd874", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "417af9d0-a47b-4af1-9cf7-d5da7bd3877f", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-22T14:55:13.5910827-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "7a2fe134-9e41-4019-a396-be7b99c3a37a", "Name": "sample string 1" }, "Unit": { "UnitId": "16cd5bc4-7c7f-4134-adff-b18688ae6773", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d145c8c3-4d16-4087-9ad8-b7bf7670f234", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-22T14:55:13.5910827-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "dabf1ff2-f531-44c5-ae64-e3e3a1ceb2a4", "FieldId": "97d4d94a-cb1a-4dbc-b6f6-c3b64292a15b", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "dabf1ff2-f531-44c5-ae64-e3e3a1ceb2a4", "FieldId": "97d4d94a-cb1a-4dbc-b6f6-c3b64292a15b", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-11-22T14:55:13.5910827-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "c7732afa-d2e7-4a19-b09e-13ff8497dd48", "CreateDate": "2024-11-22T14:55:13.5910827-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-22T14:55:13.5910827-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }