What is difference between 'push lead to marketo' vs 'create lead in marketo'

Tejas_Deshmukh_
Level 2

What is difference between 'push lead to marketo' vs 'create lead in marketo'

As per http://developers.marketo.com/rest-api/lead-database/leads/
There are two API

1) Create and Update

POST /rest/v1/leads.json

2)Push Lead to Marketo

POST /rest/v1/leads/push.json

input difference - program id for create required while program name required for push

What is difference between this push and create?

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: What is difference between 'push lead to marketo' vs 'create lead in marketo'

The differences should be clear from their signatures and the comments in the docs.

Push includes a Reason, which is very handy for constraints and filters; its way of locating the program may save you an API call (though it'salso more fragile because names are not immutable).

Neither method is particularly awesome nor grossly flawed. The question, as with all software design, is what you're trying to accomplish.

Tejas_Deshmukh_
Level 2

Re: What is difference between 'push lead to marketo' vs 'create lead in marketo'

Yes...
As both the method are used for same purpose.. ie for creating leads on marketo side...which creates some sort of confusion which one to use .
I will have to use as per my software design, while mutable behaviour of names will definitely have to consider.