Support asked me to post this here.
We have a workato recipe that enrolls users that download our products into an email campaign in hubspot. It has started to throw a 412 error that seems to originate from you. Its possible that the 412 is generated by workato when receiving the 204 response from you.
An example from today given input:
Response content type: json,
Request name: Enroll contact in workflow - Download TK4J from Marketplace,
Request URL: https://api.hubapi.com/automation/v2/workflows//enrollments/contacts/?hapikey=
HTTP error: #<RestClient::PreconditionFailed: 412 Precondition Failed>
If I manually POST to that url via postman I get an error suggesting that the original operation succeeded.
"message": "Contact has already been enrolled in the workflow. Change the workflow setting if you want to allow multiple enrollments of the same contacts.",
Hubspot enroll URL returns a "204 No Content" when it is successful and perhaps that is what is confusing workato.