Hierarchical Value Service API  future
api index

MergeScopesBatchRequest Object

since: 0.51
A MergeScopesBatchRequest is a single object a list of SingleScopeBatches. Both the key and records fields of the SingleScopeBatches are required and can not be null. The key field can not be empty but records can be.

The request's records array must contain between 1 and 100 records, inclusive. Any other size results in an error.

Fields

batch
0.1required
A list of request items. Individual elements in this list may not be null.
0.1 min length: 1
0.1 max length: 100

Related API Resources

Example - Create / Update records for scope (US-TX, 0011491975135), Delete scope (US-TX-Dallas, 0011491975135)

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

          "values":
          [
            {
              "name": "Price",
              "value": "20",
              "type": "DECIMAL",
              "unit": "Each",
              "currency": "USD",
              "perQuantity" : 1
            }
          ]
        }
      ]
    },
    {
      "key":
          [
            {
              "dimName": "SAMPLE_PRODUCTS",
              "nodeName": "0011491975135"
            },
            {
              "dimName": "LARGE_CITIES",
              "nodeName": "US-TX-Dallas"
            }
          ],
      "records": [ ]
    }
      ]
    }