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": "2d93264b-f245-4bda-95e3-b50d0407ef07", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "e033d47f-686c-439c-b6ef-906c7f3206b4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "74ace358-d8a0-4c99-af55-2638ba8b895b", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T01:35:31.2467674-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "29a57a98-c185-448c-b353-e8b965761882", "Name": "sample string 1" }, "Unit": { "UnitId": "bcd657e8-bda6-467e-950a-7c60bca55801", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d3cde795-6e75-4b05-a8de-fdf6572d02a7", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T01:35:31.2467674-07: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-10-10T01:35:31.2467674-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "995df7bc-7b7a-4b6e-831f-e8f4cfb38075", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T01:35:31.2467674-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": "1c6a51ff-59d4-4dd0-ba83-e6b66f1ed93f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "761040df-1e7e-4bbc-b893-5093753d43dc", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "69ef9c70-9465-47b2-a759-8039708ff614", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T01:35:31.2467674-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "9531a7eb-c95f-465c-8d67-0adf2b4150c0", "Name": "sample string 1" }, "Unit": { "UnitId": "95a95cf6-6b99-440d-9e27-67643daa03d8", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "002a500c-d2b4-4d5e-b0bc-9ecc28974099", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T01:35:31.2467674-07: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-10-10T01:35:31.2467674-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "e827f0b0-576e-441e-b02a-8b16a7e0fafc", "CreateDate": "2024-10-10T01:35:31.2467674-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T01:35:31.2467674-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }