DELETE MeasurementTypes

Deletes the given measurement type, including all measurements of that type.

Request Information

URI Parameters

None.

Body Parameters

Measurement type to delete

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": "5ff1f412-4da9-42c7-8040-06db5d098cad",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "70179be0-5b77-45b8-a977-3d7feb685b8f",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "e9be8628-0c78-4234-b0eb-aa5f2772aeeb",
    "CreateDate": "2024-10-10T12:02:03.5951152-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-10-10T12:02:03.5951152-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "f62a6c86-7a04-41ab-b09c-8941a183ca5e",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "aac2a7e3-6b97-459b-bbeb-ec46cbbf5db5",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "3db020b9-8c0a-4a52-826c-f9eef3fd2a86",
    "CreateDate": "2024-10-10T12:02:03.5951152-07:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-10-10T12:02:03.5951152-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-10-10T12:02:03.5951152-07:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "98ffaab5-fbf0-495f-91b0-4e9084a9cf01",
  "CreateDate": "2024-10-10T12:02:03.5951152-07:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-10-10T12:02:03.5951152-07:00",
  "LastModifiedUser": "sample string 8"
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

Object

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Total": 1,
  "Message": "sample string 2"
}