PUT MeasurementTypes
Updates the given measurement type.
Request Information
URI Parameters
None.
Body Parameters
The measurement type to update
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": "6684e3f9-a20b-4071-a395-60a2563f0dc2", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "b4355ea5-7c2f-4103-bf06-a9648d6ff2ce", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "df5b6c00-7b7b-40e9-b2e8-6725943901ff", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "4d066e31-f2cb-4664-b507-e3ee2250f92b", "Name": "sample string 1" }, "Unit": { "UnitId": "7524fdaa-d419-45b7-a143-0b0930a17784", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "04b52bce-7f6e-4de8-adeb-d09a4a605c9d", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "714228a0-98f1-4699-86ae-e4eda30d36e9", "FieldId": "9f5e19fd-a81a-4759-a4ee-3847238cb294", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "714228a0-98f1-4699-86ae-e4eda30d36e9", "FieldId": "9f5e19fd-a81a-4759-a4ee-3847238cb294", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T15:19:07.653989-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "2166ccd0-99d9-43aa-be9b-da334065eaad", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 8" }
Response Information
Resource Description
On success, the updated 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": "e8e918c6-6fd3-48b2-a21c-893e4c8fd393", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "f390b1bc-ca93-4f6d-8542-1be74c417bee", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d8ba8add-4c78-4d99-8108-979a91d87e86", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "76b1538a-54e4-4f94-8a98-cb7e888c8095", "Name": "sample string 1" }, "Unit": { "UnitId": "b4f0f4c2-8e8f-48a3-ae64-d191d431d366", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "23b78595-9c79-4392-a31f-8dd1cb5d45ca", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "9a39227f-bc84-425e-b4a8-f163f2da33aa", "FieldId": "34ed7d41-d73e-4b4e-ad93-b43034ade941", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "9a39227f-bc84-425e-b4a8-f163f2da33aa", "FieldId": "34ed7d41-d73e-4b4e-ad93-b43034ade941", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "FrequencyNeeded": 1, "ValueNeededDate": "2025-04-03T15:19:07.653989-07:00", "IsAccumulator": true, "SourceSystemId": "sample string 5", "CompanyId": "aa42f012-15c0-4169-bfd0-7434cdbecffc", "CreateDate": "2025-04-03T15:19:07.653989-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:19:07.653989-07:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }