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 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": "11a831a0-86fa-452c-ad92-a72f46e3f844",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "b18569fa-0daf-4c5a-a4f2-3289acfc91a5",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "da8d547b-bbce-4582-ad43-2778038e7f57",
    "CreateDate": "2024-04-18T22:20:54.4932144-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-04-18T22:20:54.4932144-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "549230b4-68de-4c1b-82ba-4b362e1a2a3b",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "0168e44e-ca4d-40db-b67d-e792eee4243d",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "de3cb15d-1bb0-47b1-9747-e693df368cac",
    "CreateDate": "2024-04-18T22:20:54.4932144-07:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-04-18T22:20:54.4932144-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-04-18T22:20:54.4932144-07:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "8bcb6a96-1667-43bb-ad8e-a2c24d240b80",
  "CreateDate": "2024-04-18T22:20:54.4932144-07:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-04-18T22:20:54.4932144-07: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": "bd7b0fad-99c5-4cef-89c6-67cbb922afe3",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "5e122f9e-6ce8-409a-b7be-a222fda5c8e8",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "7466b765-36fe-43f3-8795-ae02fde1bc76",
      "CreateDate": "2024-04-18T22:20:54.6806451-07:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-04-18T22:20:54.6806451-07:00",
      "LastModifiedUser": "sample string 7"
    },
    "DataType": {
      "DataTypeId": "1b5b7fd8-178a-4c96-b1c8-d10c86313e57",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "1f91fa71-cb45-4fdb-87e8-ba3ea71dd185",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "51c4a196-593e-4639-9009-6d56c6a61037",
      "CreateDate": "2024-04-18T22:20:54.6806451-07:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-04-18T22:20:54.6806451-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-04-18T22:20:54.6806451-07:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "8757171e-b431-41d8-b5aa-394ed4d1d376",
    "CreateDate": "2024-04-18T22:20:54.6806451-07:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-04-18T22:20:54.6806451-07:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}