PEPPERI NOTIFICATION SERVICE
Actions Queue
CPI Node

Internal: Post Bulk Data

post
Post Bulk Data

https://papi.pepperi.com/v1.0/elasticsearch/bulk/{type}
This endpoint allows to upload documents to ElasticSearch.
Request
Response
Request
Headers
Authentication
required
string
Bearer authentication token
Query Parameters
type
required
string
The document type
Body Parameters
URL
required
string
all_activities/transaction_lines/open_catalog
Response
200: OK
successfully retrieved.
{
"took" : 78,
"errors" : false,
"items" : [
{
"index" : {
"_index" : "53d71abf-fff1-40f1-9a41-264cb8fc8fda", //DistributorUUID
"_type" : "_doc",
"_id" : "137112",
"_version" : 2,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 2,
"_primary_term" : 2,
"status" : 200
}
},
{
"index" : {
"_index" : "open_catalog3",
"_type" : "_doc",
"_id" : "137156",
"_version" : 1,
"result" : "created",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 2,
"_primary_term" : 2,
"status" : 200
}
}
]
}
‚Äč
400: Bad Request
{
"errorMessage": "..."
}

JSON Body Example

{
"URL":"https://cdn.staging.pepperi.com/TemporaryFiles/b6e3537e-7cf8-4428-81f6-06626d4a9b75"
}