Dump the Data API
Purpose
This API is used for the Data Collection microservice within AWS. It is used to decompress and then insert the data into the database.
Caller
This API is called by the Salesforce user.
Definition
POST https://reporting-analytics.q2cls-externalbatch.com/q2/data-collect/dump
More information on this
Domain | HTTP Method | Endpoint |
---|---|---|
https://reporting-analytics.q2cls-externalbatch.com | POST | q2/data-collect/dump |
Parameters
Header Parameters
The following table provides the details of the header parameters used by this API:
Key | Value |
---|---|
Content-Type (default parameter) | application/octet-stream |
charset (default parameter) | UTF-8 |
Accept (default parameter) | application/JSON |
Authorization | Bearer eyJraWQiOiJSdVhSOTJnRjRHbk50Q1V6Q1l (This is the JWT Token generated for the client ID and the client key) |
Sample Request
<Blob SF Report CSV Data>
Sample Response
The following response is received based on the request sent, as described in the Sample Request:
{ "data": { "data_collect_id": "200017187712", "file_id": "LOS_Billing_customerReport_1660041569679.csv" }, "message": "Data Collection Successfull", "errors": null }
Error Messages
Error Message | HTTP Code | Resolution |
---|---|---|
{ "data": null, "message": "Data Collection Failed", "errors": null } | 500 | Upload failed due to:
|
{ "message": "Unauthorized" } | 401 | This error occurs when the token is invalid. To resolve this, check and correct the Authorization header parameter. |