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": "a6f3f4ef-7aab-46a4-b523-ec25c7eb7578",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "b3b73923-3343-4fc7-b752-0e58a475b7c4",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "IsWell": true,
    "DisplayColor": "sample string 4",
    "SourceSystemId": "sample string 5",
    "CompanyId": "c087b2b4-229b-4f8f-99d5-dbdd1c3af784",
    "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-22T21:21:24.1292992-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "DataType": {
    "DataTypeId": "acca233b-95a9-447d-937e-9827f894ca6d",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "91881389-32fe-4571-87e7-1a22715c4a0a",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "6006924b-0b7f-4ce8-bc04-d6181ce04996",
    "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-22T21:21:24.1292992-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "beb8bc8a-d56d-4695-be0d-9d5be5dd5977",
      "FieldId": "86a168ec-ae18-4b99-b35a-9ddf6973019e",
      "FieldName": "sample string 1",
      "FieldLable": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "beb8bc8a-d56d-4695-be0d-9d5be5dd5977",
      "FieldId": "86a168ec-ae18-4b99-b35a-9ddf6973019e",
      "FieldName": "sample string 1",
      "FieldLable": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "FrequencyNeeded": 1,
  "ValueNeededDate": "2024-11-22T21:21:24.1292992-08:00",
  "IsAccumulator": true,
  "SourceSystemId": "sample string 5",
  "CompanyId": "cca37348-9939-4b33-9999-dd119516d2bd",
  "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
  "CreateUser": "sample string 7",
  "LastModifiedDate": "2024-11-22T21:21:24.1292992-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": "c7472a0b-6c5e-481d-a938-fe32047d0183",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "39922b57-5c1e-495c-b8f6-40ffb0eb792a",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "2f64c588-07c9-407f-8053-ce6b66d208ac",
      "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-22T21:21:24.1292992-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "DataType": {
      "DataTypeId": "b1aa7fad-46be-4175-bfd5-31cbfe82dec1",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "d05ca46a-a3b1-40c4-b970-9ac330f513c6",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "8fa8e547-2366-4026-8d2f-4803b3cff13d",
      "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-22T21:21:24.1292992-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "964e304a-de20-49e9-b923-57e3b765373e",
        "FieldId": "16843df5-6c9b-42e0-a9b6-a27de56dfb6b",
        "FieldName": "sample string 1",
        "FieldLable": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "964e304a-de20-49e9-b923-57e3b765373e",
        "FieldId": "16843df5-6c9b-42e0-a9b6-a27de56dfb6b",
        "FieldName": "sample string 1",
        "FieldLable": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "FrequencyNeeded": 1,
    "ValueNeededDate": "2024-11-22T21:21:24.1292992-08:00",
    "IsAccumulator": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "e4e7fc91-55e7-4ac7-b4be-2ed86e7e9aa1",
    "CreateDate": "2024-11-22T21:21:24.1292992-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-22T21:21:24.1292992-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}