Generic Resource
PEPPERI NOTIFICATION SERVICE
Actions Queue
CPI Node
TODO training

Internal: Post Update Data

post
Update Data

https://papi.pepperi.com/v1.0/elasticsearch/update/{type}
Request
Response
Request
Headers
Authentication
required
string
Authentication token to track down who is emptying our stocks.
Query Parameters
type
required
string
all_activities/ transaction_lines/ open_catalog
Response
200: OK
Update data successfully.
{
"took" : 14,
"timed_out" : false,
"total" : 1,
"updated" : 1,
"deleted" : 0,
"batches" : 1,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0,
"failures" : [ ]
}
‚Äč

JSON Body Example

{
"query": {
"bool":{ "must":{"terms":{"UUID":["a7197061-9d76-465d-abd3-df30ea21452e","f71970c1-9d76-415d-abd3-df30ea214531"]}}}
},
"script": {
"source": "ctx._source['CategoryUUID']='Category1'"
}
}