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 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.

CreateMachine

string

None.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

LastModifiedMachine

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MeasurementTypeId": "506f12d5-a214-48d6-8c9f-fc60e8a4edfd",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "0c71f5ae-ed40-4956-8ff2-bd55723d0e74",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "bdfb7265-f85f-4e29-9e40-8c08e6137b15",
    "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
    "CreateUser": "sample string 6",
    "CreateMachine": "sample string 7",
    "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
    "LastModifiedUser": "sample string 8",
    "LastModifiedMachine": "sample string 9"
  },
  "DataType": {
    "DataTypeId": "158417d6-d071-4254-9376-ce2a0db8e4c1",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "2ab215d6-5cd8-4a9c-94df-18b805c3aa23",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "556ed2aa-8aee-4d2d-aa78-6d206ce8436c",
    "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
    "CreateUser": "sample string 5",
    "CreateMachine": "sample string 6",
    "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
    "LastModifiedUser": "sample string 7",
    "LastModifiedMachine": "sample string 8"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    "sample string 1",
    "sample string 2"
  ],
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2021-04-17T07:40:28.3676776-07:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "da879dff-9f04-4c2b-9635-8c92cc5945a3",
  "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
  "CreateUser": "sample string 7",
  "CreateMachine": "sample string 8",
  "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
  "LastModifiedUser": "sample string 9",
  "LastModifiedMachine": "sample string 10"
}

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": "85de0a3d-e457-49a5-b580-6375157c0d4b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "0997b67c-0581-42ca-95d8-b2aacc23ce17",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "f8a7cbc4-04e6-473d-89e8-a83d71bb579f",
      "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
      "CreateUser": "sample string 6",
      "CreateMachine": "sample string 7",
      "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
      "LastModifiedUser": "sample string 8",
      "LastModifiedMachine": "sample string 9"
    },
    "DataType": {
      "DataTypeId": "f4b920e1-3609-4360-ae78-69cac352b95a",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "06dcfa65-849f-414b-86d7-7b3c009a7db3",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "d69b8e5c-ef7a-4de5-991e-416a25b00399",
      "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      "sample string 1",
      "sample string 2"
    ],
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2021-04-17T07:40:28.3676776-07:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "24eef80f-974d-4317-ab15-dec849f82523",
    "CreateDate": "2021-04-17T07:40:28.3676776-07:00",
    "CreateUser": "sample string 7",
    "CreateMachine": "sample string 8",
    "LastModifiedDate": "2021-04-17T07:40:28.3676776-07:00",
    "LastModifiedUser": "sample string 9",
    "LastModifiedMachine": "sample string 10"
  },
  "Total": 1,
  "Message": "sample string 1"
}