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": "a8d59716-4659-4321-b3ec-4ed5ddea2ac1", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "505e2181-4f21-43a2-9c8d-d862a01f0522", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "8d1bf8f8-1dd0-4f3d-ac3a-a553719e3366", "CreateDate": "2025-08-30T12:54:18.2854672-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:54:18.2854672-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "e42dc97c-b889-4cbb-9671-df337558c46e", "Name": "sample string 1" }, "Unit": { "UnitId": "8c61fa6f-f8d3-477a-9023-5c618372f3fb", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f3b676b1-28c6-4932-a955-3d1b91efcdb1", "CreateDate": "2025-08-30T12:54:18.2854672-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T12:54:18.2854672-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": "2025-08-30T12:54:18.2854672-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "f3be7fee-5958-41b5-9dd1-87c157b6db23", "CreateDate": "2025-08-30T12:54:18.2854672-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T12:54:18.2854672-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": "74808e28-b184-4b3d-ba5b-0ef1b85afa6f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "518858b5-f57e-4065-b5f0-029154987d6e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "50d982fa-347b-4e77-812e-eccf82a1415f", "CreateDate": "2025-08-30T12:54:18.3010806-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:54:18.3010806-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "b0c22523-d700-4815-a97a-2a70e7f615fd", "Name": "sample string 1" }, "Unit": { "UnitId": "c663eeee-4ea0-4c82-99df-bc1bdd9276d2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d3f10f51-f7bc-45ef-988c-cf786752a3b6", "CreateDate": "2025-08-30T12:54:18.3010806-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T12:54:18.3010806-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": "2025-08-30T12:54:18.3010806-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "4d35cf5d-9501-4c11-afbd-37835fbf8aac", "CreateDate": "2025-08-30T12:54:18.3010806-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T12:54:18.3010806-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }