Article - CS376106

Postman example to write tag with Kepware IOT Gateway REST Server Agent

Modified: 14-Nov-2023   


Applies To

  • ThingWorx Kepware Server (legacy) 8.0 N/A to 6.15.132.0
  • Kepware Server (formerly KEPServerEX) 6.0.2107.0 to 6.15

Description

  • This article shows simplest configuration to write tag with Postman through IOT Gateway REST Server Agent, user should adjust the corresponding settings according to Kepware's own configurations
  • Example Steps
    1. Create REST Server Agent with IOT Gateway Plugin
      • image.png
      • Check Enable write endpoint
        • image.png
    2. Select existing device tag to REST Server Agent
      • image.png
      • Target tag should be Read/Write Client Access mode
        • Read Only mode will fail with Request rejected error
        • image.png
    3. Create write request with Postman as below
      • HTTP Method as POST
      • Save new tag value with Body
        • Body for write multiple tags
        • [{"id": "Channel1.Device1.Tag1","v": "123"},{"id": "Channel2.Device2.Tag2","v":
          "456"},{"id": "Channel3.Device3.Tag3","v": "789"}]
      • Change Body format to JSON
        • image.png
    4. Send request, return 200 status code and response body as below
      • image.png
      • Tag with Read Only mode will return 200 status code and Request rejected error as below
        • image.png
 
 
This is a printer-friendly version of Article 376106 and may be out of date. For the latest version click CS376106