Create a Product

Creates a new product. The body of the request should contain a JSON representation of the product to be created.

Request

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

    {"product":{
        "description":"this is a device on xively",
        "name":"API Example",
        "feed_defaults":{
          "title":"Demo Unit",
          "tags":["device:type=API Example"],
          "private":"true",
          "datastreams":[{"id":"channel1"},{"id":"demo"}]},
          "user":"USERNAME"
        }
    }
    
  • XML format not available for this call
    
  • CSV format not available for this call
    

Response

Parameters
Status Code 201 CREATED
Headers
Location https://api.xively.com/v2/products/NEW_PRODUCT_ID
Body
JSON
XML
CSV
  • This response does not contain body data
    
  • XML format not available for this call
    
  • CSV format not available for this call