Re: Remove from Program using the batch API

Tim_Alexander1
Level 1

Remove from Program using the batch API

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

Re: Remove from Program using the batch API

try the push endpoint and programStatus Not In Program

​tested and doesn't work

Tim_Alexander1
Level 1

Re: Remove from Program using the batch API

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?

SanfordWhiteman
Level 10 - Community Moderator

Re: Remove from Program using the batch API

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

Push doesn't support "Not in Program".

Jay_Jiang
Level 10

Re: Remove from Program using the batch API

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

Re: Remove from Program using the batch API

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

Jay_Jiang
Level 10

Re: Remove from Program using the batch API

Missed that in docs. Yeah use that one