Hi all,
Thanks in advance for any light you can shed on the issues that I am facing.
I have implemented the OAuth workflow and am passing the access token as a bearer token as a header. This workflow works for other endpoints that I have previously implemented. This is the endpoint I am PUT requesting to:
/automation/v3/logevents/workflows/<workflow_id>/filter
Am I correct in assuming that the following url’s ‘workflow_id’ would be ‘2106109’ or would it be ‘2106109/flow/3136415’?
URL: Automation UI Canvas
This is the documentation that I am following from:
https://developers.hubspot.com/docs/methods/workflows/log_events
I am a bit confused as to why it would be a ‘PUT’ request and not a ‘GET’ request as no data is being updated on the server. That small issue aside, these are the filters I am passing as the request body:
request_parameters = {
‘types’: [‘COMPLETED_WORKFLOW’],
‘offset’: ‘1548979200’,
‘limit’: 1546300800
}
No matter what types I pass the content is always empty. I have also tried without ‘offset’ and ‘limit’ filters. Yes, this workflow is active and has had multiple deals pass through it everyday for the last 6 months or so.
Here is the error json that is returned:
{“status”:“error”,“message”:“No content (empty input stream)”,“correlationId”:“f18408cb-2aeb-432a-8607-bd4b4dad109e”,“requestId”:“44248fa6d01adbebec5d370039d53a3c”}
Could someone point me in the right direction?
Cheers,
James.