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": "afb3c054-adc1-485c-99a4-89093310d2de", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4849a86f-207c-473d-9ec7-6bb7658cc52f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "7f508b65-7dd1-4400-84c4-697253bcb3b3", "CreateDate": "2024-12-26T03:22:47.9869015-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-26T03:22:47.9869015-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "1308727d-f45a-4581-8c88-b615e8a0daaa", "Name": "sample string 1" }, "Unit": { "UnitId": "a5a6a2d5-25e1-437c-840d-24be57441bcf", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "51897a72-a24e-4d28-a2f2-eea92910a97b", "CreateDate": "2024-12-26T03:22:47.9869015-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:22:47.9869015-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "744b0a93-3d66-4386-a9a7-5dd92645fb80", "FieldId": "908a64dc-29c4-4705-a70d-06ba7e7cf4a3", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "744b0a93-3d66-4386-a9a7-5dd92645fb80", "FieldId": "908a64dc-29c4-4705-a70d-06ba7e7cf4a3", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-26T03:22:47.9869015-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "c52acece-9178-43f7-ab14-d54e6ef29f31", "CreateDate": "2024-12-26T03:22:47.9869015-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-26T03:22:47.9869015-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": "e1ff87da-cd4b-4a3b-b435-a6ca47f45154", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "07ce19a8-9a7d-41e0-a4ad-d95468dff3e5", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c1685ba6-1bba-4e18-a1a3-f87145f7d1b2", "CreateDate": "2024-12-26T03:22:48.0025814-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-26T03:22:48.0025814-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "5162f533-40ba-4b2a-bc27-d17d1868074d", "Name": "sample string 1" }, "Unit": { "UnitId": "0f39c982-c23b-4c0d-a5fb-42cd12f45f35", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "350d6d1c-908f-4594-a28d-1cf32ff9d045", "CreateDate": "2024-12-26T03:22:48.0025814-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-26T03:22:48.0025814-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "c4194d81-0eeb-4e14-b29a-e928d072d9f2", "FieldId": "e4f67f35-18db-40d1-93d1-b19df56fec3f", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "c4194d81-0eeb-4e14-b29a-e928d072d9f2", "FieldId": "e4f67f35-18db-40d1-93d1-b19df56fec3f", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2024-12-26T03:22:48.0025814-08:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "6dc61d5b-35dd-468d-9b2d-edf2cd24b5c0", "CreateDate": "2024-12-26T03:22:48.0025814-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-26T03:22:48.0025814-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }