Re: Remove from Program using the batch API

Tim_Alexander1
Level 1

My devs are finding it difficult to come up with a way to remove a lead from a program via the API. Does anyone know any tricks to this?

6 REPLIES 6
Jay_Jiang
Level 10

try the push endpoint and programStatus Not In Program

​tested and doesn't work

Tim_Alexander1
Level 1

I'm pretty sure that's what they're trying, though I'll know for sure tomorrow. Just to confirm though, this is definitely possible, yes?

Jay_Jiang
Level 10

Annoying workaround, create your own program step that is usable in push calls "API-Not In Program"

Create a smart campaign with flow "Change Program Status is [Channel] > Not In Program" to go with it

SanfordWhiteman
Level 10 - Community Moderator

But as I noted, there already is an API endpoint that works, Change Lead Program Status.

Jay_Jiang
Level 10

Missed that in docs. Yeah use that one

SanfordWhiteman
Level 10 - Community Moderator

You have to use Change Lead Program Status ​w/"Not in Program".

Push doesn't support "Not in Program".