has anyone used this api? how can I pass the value of start and end dates?
I don’t want to hard code these dates as i want to make my pipeline more dynamic. I want to pass start date as first day of the previous month and end date as the last date of the previous month.
but still got below error:
Failure: REST API service endpoint returned error result: status code = 404, Reason: REST API service endpoint returned error result: status code = 404, reason phrase = NOT FOUND, refer to the error_entity field in the error view document for more details, Resolution: Please check the values of Snap properties.
Any help will be appreciated!
You’ll need to modify the Service URL to include everything up to the question mark, eg. https://elastic.snaplogic.com/api/1/rest/public/runtime/abc123
Modify the Query parameters to so that the left column, which is the query parameter key, looks like start and the left could look like _START.
Then you’ll need to modify the Pipeline so that it has a Pipeline Parameter called START.
Do steps 2 and 3 again for the end query string parameter.
To make your pipeline dynamic, you could look at this documentation for more information.
Error I am getting:
Failure: REST API service endpoint returned error result: status code = 400, Reason: REST API service endpoint returned error result: status code = 400, reason phrase = BAD REQUEST, refer to the error_entity field in the error view document for more details, Resolution: Please check the values of Snap properties.