Un-enrolling contact from workflow using API not working


#1

I have a contact with VID = 10951 and I can see he is enrolled into workflow “Direct Sales” with ID = 1751272.
https://app.hubspot.com/contacts/2847253/contact/10951/workflow-memberships

When I try to un-enroll the contact from the workflow using the API, I get the expected result (i.e. HTTP status code 204), but the contact is still enrolled in the workfow.

I am doing DELETE to
https://api.hubapi.com/automation/v2/workflows/1751272/enrollments/contacts/erik@xxxx.com
and I am using OAuth, so I’m sending the access token as part of the header of the HTTP request like this:
Authorization = Bearer CKO99-23…