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 string |
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": "96362075-45d2-447e-bf99-e6049a116edd", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "803cba2b-70ec-4a9e-877b-9a676179a6f7", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "1ca868b0-a07e-4b82-b923-f492c86e645d", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:24:51.810838-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "9f361049-4d6d-42de-992a-81340d5bd11e", "Name": "sample string 1" }, "Unit": { "UnitId": "7ac3726f-98cc-4359-8548-5ba62f8a01ea", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "c089c8eb-a05b-4fbd-b58e-4052b6fd52f3", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:24:51.810838-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:24:51.810838-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "cd42d97a-5445-4c9a-a714-ea98e6ac9663", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:24:51.810838-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": "7b22cdf5-5617-4eb3-8597-774fce642bf7", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4bb3308b-4305-4b5a-9fa8-15228bba5374", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b8d692d9-d217-4731-862d-a71e6295ed2c", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:24:51.810838-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "3c0a553a-dc95-4953-bf65-3dc456be2389", "Name": "sample string 1" }, "Unit": { "UnitId": "10228063-d65f-48ef-80f7-f51b80fa586a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "93b2843f-8958-4229-9afa-3d70cedc1dca", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:24:51.810838-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-21T19:24:51.810838-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "da0c3477-d473-4bcd-9eb5-2103e2f48f32", "CreateDate": "2024-12-21T19:24:51.810838-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:24:51.810838-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }