Workflow Enrollment returns 204 even when Workflow is inactive

I’m working on a HubSpot integration which allows HubSpot Contacts to be enrolled in specified Workflows. In the course of testing, I’ve discovered that the Enroll a contact into a workflow endpoint will return a 204 response, even when the given Workflow is inactive.

When immediately checking the Contact’s enrollments thereafter, the Workflow does not appear in the list. Also, none of the actions in the Workflow (e.g. property updates, email sends, etc.) are executed.

I would have expected a non-200 response code in the case above. Is this a bug?

Hi @iamEAP,

I’m also seeing that if I enroll a contact into an inactive workflow using this endpoint > I received a 204 response. I would expect a 4xx errors as the contacts didn’t get enrolled into the workflow successfully (as workflow is inactive) and so I’ll have to check in with my team on this. Keep you posted!

Thanks for the quick response, Wendy. Curious to hear if there are any updates on this.

Hi @iamEAP,

Our team is still working on a fix for this and I’ll definitely keep you posted when I’ve updates on this. Thank you for your patience!

Hey @iamEAP,

Thank you for your patience! Here’s an update:

When trying to enroll contact into an inactive workflow via the Enroll a contact into a workflow | Workflows API, it’ll return with a 412 with the following error message:

message:"Workflow is OFF"

On my end, I have tested it out and I’m able to confirm that it works.

Do let me know if it’s working well for you and/or if there’s any question on this!

Confirmed the fix on our end as well! Closing out our downstream issue as a result.

Thanks @WendyGoh for confirming, reporting, and following-up. And please pass along my thanks to those who implemented the fix in the API.

This all gives me huge confidence (and warm fuzzies) about HubSpot as a product, service, and brand.

Hey @iamEAP,

Glad to know that it’s working on your end as well :slightly_smiling_face: