Write a Single Datapoint to Each Datastream

Request

Parameters
Method PUT
Base URL https://api.xively.com
API Endpoint /v2/feeds/FEED_ID_HERE
Headers
X-ApiKey API_KEY_HERE
Body
JSON
XML
CSV
  • PUT/v2/feeds/FEED_ID_HERE.json

    {
      "version":"1.0.0",
       "datastreams" : [ {
        "id" : "example",
          "current_value" : "333"
        },
        { 
        "id" : "key",
        "current_value" : "value"      
        },
        { 
          "id" : "datastream",
        "current_value" : "1337"
        }
      ]
    } 
    
  • PUT/v2/feeds/FEED_ID_HERE.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <eeml>
      <environment>
          <data id="example">
          <current_value>333</current_value>
          </data>
          <data id="key">
          <current_value>value</current_value>
          </data>
          <data id="datastream">
          <current_value>-1337</current_value>
        </data>
      </environment>
    </eeml>
    
  • PUT/v2/feeds/FEED_ID_HERE.csv

    example, 333
    key, value
    datastream, 1337
    <key>, <value>
    

Response

Parameters
Status Code 200 OK
Headers
No Headers
Body
JSON
XML
CSV
  • This response does not return body data
    
  • This response does not return body data
    
  • This response does not return body data