PUT MeasurementTypes

Updates the given measurement type.

Request Information

URI Parameters

None.

Body Parameters

The measurement type to update

MeasurementType
NameDescriptionTypeAdditional 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": "7d0795e3-7efa-4545-aa3c-5463459880a4",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "d86aa3d8-62a9-4b85-93ce-2992b96c616b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "b24d94b0-ed33-49e2-ab91-b3e67f84c8e9",
    "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "8f4989ff-c08f-4232-97b2-6cdf0d393ce0",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "908ea0ed-6892-40aa-877b-4276cf681f6a",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "60af1661-c04a-4087-87e4-8c97f32388a5",
    "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "07af99a0-2d83-4e9d-af24-4e82f82523c0",
      "FieldId": "6db9bd0d-b5bf-4379-9c98-39ee3d329e04",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "07af99a0-2d83-4e9d-af24-4e82f82523c0",
      "FieldId": "6db9bd0d-b5bf-4379-9c98-39ee3d329e04",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-11-21T04:32:50.5043922-08:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "3e0bde69-c054-4a21-ad50-758dc65c5ad3",
  "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
  "LastModifiedUser": "sample string 8"
}

Response Information

Resource Description

On success, the updated measurement type.

NameDescriptionTypeAdditional information
Data

MeasurementType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "MeasurementTypeId": "3aa584a1-5a7c-4ba9-9245-8002d351b528",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "96ef8805-e2ba-457a-8743-dc21487be26b",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "0f04c2bc-eb12-4a71-8835-87b22e9ead41",
      "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "DataType": {
      "DataTypeId": "50ba65f9-a6a5-41db-a479-59e6775df0e0",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "e2a4f6d2-c4bf-497e-8c34-e42aff2eedfd",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "8a87a6a6-6f83-4e06-940e-8e01d5c68db5",
      "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "4d83ec69-3074-4bdd-b682-f0b6640e4914",
        "FieldId": "6aa0f777-c76b-4751-b685-af6670adb21c",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "4d83ec69-3074-4bdd-b682-f0b6640e4914",
        "FieldId": "6aa0f777-c76b-4751-b685-af6670adb21c",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-11-21T04:32:50.5043922-08:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "7a9140ad-be55-4acf-ac47-e92e5bc5fdfd",
    "CreateDate": "2024-11-21T04:32:50.5043922-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T04:32:50.5043922-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}