• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Updating Data Point value via REST API

    User help
    3
    3
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dmsmith
      last edited by

      Hi Joel, Phil,

      Wondering if I'm missing something - when attempting to update a data point's value via the REST API (/v1/point-values/{xid}) I am finding that items with a "dataType" of alphanumeric will update as expected, but items with a "dataType" of numeric will not (fail with a 406 error). To double check I have taken a single data point which has a type of numeric and continually fails to update via the API and changed its dataType to alphanumeric, and suddenly it starts updating as expected. Upon returning the dataType setting to numeric it once again fails. Flip-flop between the 2 dataTypes and the update works and doesn't respectively.

      The JSON from the put command is very very basic and all I did is add or delete ALPHA from the relevant location in the dataType line:

      {
      "dataType": "NUMERIC",
      "value": "4321",
      "timestamp": 0,
      "annotation": ""
      }

      Am I missing something? Should there be some additional required information/step for "numeric" dataTypes?

      Cheers,

      David

      1 Reply Last reply Reply Quote 0
      • C
        craig
        last edited by

        what if you remove the quotes from around the number 4321 when it is numeric?

        1 Reply Last reply Reply Quote 2
        • phildunlapP
          phildunlap
          last edited by

          ^ this was my first thought as well.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post