Like insert and delete, do we have any rest implementation for update? Or is there anyway to update the existing values of kvstore
reference:
http://dev.splunk.com/view/SP-CAAAEZX
for insert:
// Use the request method to send a REST POST request
// to the storage/collections/data/{collection}/ endpoint
service.request(
"storage/collections/data/mycollection/",
"POST",
null,
null,
JSON.stringify(record),
{"Content-Type": "application/json"},
null)
for delete:
/ Delete the record that corresponds to the key ID using
// the del method to send a DELETE request
// to the storage/collections/data/{collection}/ endpoint
service.del("storage/collections/data/mycollection/" + encodeURIComponent(form_keyid))
.done(function() {
Thanks
... View more