POST MeasurementTypes

Creates a new measurement type.

Request Information

URI Parameters

None.

Body Parameters

The measurement type to create. MeasurementTypeId should not be filled in.

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": "19bddb04-dfaf-4d65-a79d-ee1530267f09",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "f3988b7a-a851-4d53-8e38-174af3e885ad",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "750032c1-1121-4725-a528-f163d293ca6c",
    "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "3b74e35c-b904-41ec-b4d5-392d31acbd0c",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "081893dd-d647-4ae8-9648-cd39fe09833c",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "aabcf6e0-0e07-44f2-9e24-0eb85b5761af",
    "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "3150319e-300a-475a-b7d8-974fd24fe5e4",
      "FieldId": "a333034b-42d7-4382-a58d-bb0b29e0d6cc",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "3150319e-300a-475a-b7d8-974fd24fe5e4",
      "FieldId": "a333034b-42d7-4382-a58d-bb0b29e0d6cc",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-12-08T10:37:25.0409138-08:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "36349e05-6cc5-42b5-80c5-9a19668265b6",
  "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
  "LastModifiedUser": "sample string 8"
}

Response Information

Resource Description

On success, the created measurement type.

NameDescriptionTypeAdditional information
Data

MeasurementType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "MeasurementTypeId": "9bcbe78c-7629-4727-90f9-2d590a44b5df",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "29853ff0-eeb5-45cd-84ae-c0255925ea77",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "1662c2bb-a241-424b-a13b-57bcb986971f",
      "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "DataType": {
      "DataTypeId": "72c576b3-62d2-4c61-bf63-75b7bb8a06a3",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "ce841d40-dd31-422f-a769-82a24ece0b0a",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "8e95b2d1-e27d-4e30-8f4b-2694ed7e570f",
      "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "09c51b06-2d81-4569-9ab3-3b7303c3a148",
        "FieldId": "79616901-1a8f-45f4-82b3-08f249f4549f",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "09c51b06-2d81-4569-9ab3-3b7303c3a148",
        "FieldId": "79616901-1a8f-45f4-82b3-08f249f4549f",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-12-08T10:37:25.0409138-08:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "a968046b-1c19-4190-9ccd-cbba9c2b3fba",
    "CreateDate": "2024-12-08T10:37:25.0409138-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-12-08T10:37:25.0409138-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}