Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

OMF with PI Web API

Dynamic type sample message

  • Last UpdatedSep 04, 2025
  • 1 minute read

The following sample message creates two dynamic types that you can use as templates for creating containers.

A container created from the type DeviceStatus will have two properties or PI points: Device Status and Speed. A container created from the type DeviceStatus2 will have one property or PI point: Acceleration.

Required header: { messagetype: "Type" }

Start by sending a type message through the body of a POST request:


[

{

"id": "DeviceStatus",

"classification": "dynamic",

"properties": {

"DeviceStatus": {

"type": "string"

},

"Speed": {

"type": "number"

},

"Time": {

"format": "date-time",

"isindex": true,

"type": "string"

}

},

"type": "object"

},

{

"id": "DeviceStatus2",

"classification": "dynamic",

"properties": {

"Acceleration": {

"type": "number"

},

"Time": {

"format": "date-time",

"isindex": true,

"type": "string"

}

},

"type": "object"

}

]

Expected Response: 201 Created.

TitleResults for “How to create a CRG?”Also Available in