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": "6ba2147e-def2-49b0-9fa1-39699e319c48",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "f7976346-b070-4f4f-a972-9b0e89bcaf5b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "8eb3a7bb-b593-4979-a847-c6c49f608f20",
    "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-08T06:50:50.6715947-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "37e71dc7-a444-4c30-b132-66e808c5369b",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "2879ae0f-7caa-4b94-8db1-be7191a8029f",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "f3ac3430-98b7-4e9b-9a64-105d94823ecc",
    "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-12-08T06:50:50.6715947-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "d44711de-55f6-4417-b68f-d34881d00768",
      "FieldId": "74929d5c-ea02-4c81-b263-be4dbf7f420f",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "d44711de-55f6-4417-b68f-d34881d00768",
      "FieldId": "74929d5c-ea02-4c81-b263-be4dbf7f420f",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-12-08T06:50:50.6715947-08:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "5f2015fd-f92e-4046-bb74-bfc3db202ae3",
  "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-12-08T06:50:50.6715947-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": "4a23476a-4225-4dc7-802e-2e89b8750628",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "164aa588-2920-40e9-96c5-79270e89b52e",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "b4822816-ce1a-4a1e-a0ee-a93c9332b773",
      "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-12-08T06:50:50.6715947-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "DataType": {
      "DataTypeId": "e1556c36-8608-4a23-9f4c-7e5ee88029dc",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "8fabb246-8678-4f96-aa0d-aab11a315b19",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "e1bcd7f6-c9ad-43e5-8100-038b4f2408e4",
      "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-12-08T06:50:50.6715947-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "3d03666c-97b1-42cf-adcf-9375e5858b8c",
        "FieldId": "c029ab29-f1d2-43d8-9f73-f2d65e4bbb43",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "3d03666c-97b1-42cf-adcf-9375e5858b8c",
        "FieldId": "c029ab29-f1d2-43d8-9f73-f2d65e4bbb43",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-12-08T06:50:50.6715947-08:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "60ebc35f-4aaf-4ed5-b1b9-a82a6d27fb02",
    "CreateDate": "2024-12-08T06:50:50.6715947-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-12-08T06:50:50.6715947-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}