Hierarchical Value Service API  future
api index

BatchRecordRequest Object

since: 0.29
A BatchRecordRequest is a single object that contains lists of other objects, such as BatchRecordRequestItems.

Fields

records
0.1required
A list of request items. Individual elements in this list may not be null. In the key values both ids as well as names can be included. But if the id is included, name is ignored.

Related API Resources

Example - Create or Update Batch Request

    {
      "records":
      [
        {
          "start": "2014-04-14T10:05:43",
          "end": "2015-05-10T20:14:21",
          "key":
          [
            {
              "dimName": "SAMPLE_PRODUCTS",
              "nodeName": "0011491975135"
            },
            {
              "dimName": "LARGE_CITIES",
              "nodeName": "US-TX"
            }
          ],
          "values":
          [
            {
              "name": "Price",
              "value": "20",
              "type": "DECIMAL",
              "unit": "Each",
              "currency": "USD",
              "perQuantity" : 1
            }
          ]
        }
      ]
    }
    

Example - Delete Batch Request

    {
      "records":
      [
        {
          "start": "2014-04-14T10:05:43",
          "end": "2015-05-10T20:14:21",
          "key":
          [
            {
              "dimName": "SAMPLE_PRODUCTS",
              "nodeName": "0011491975135"
            },
            {
              "dimName": "LARGE_CITIES",
              "nodeName": "US-TX"
            }
          ],
          "deleted": true
        }
      ]
    }