SOLVED

How to differentiate add/remove lead to list request

Go to solution
Keerthana_Shan1
Level 2

How to differentiate add/remove lead to list request

Hi,

Am trying to add and remove lead from list using rest API (http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#/Static_... )

Input request and api url are same for both add and remove API's.

Please find input request below,

{

  "input": [

    {

      "id": 0

    }

  ]

}

With this request am able to add lead to a list, but I also want to remove lead from list.

I need key parameter in input request which differentiate add and remove rest API.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How to differentiate add/remove lead to list request

I need key parameter in input request which differentiate add and remove rest API.

One is a POST, the other an HTTP DELETE, as shown in the docs.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: How to differentiate add/remove lead to list request

I need key parameter in input request which differentiate add and remove rest API.

One is a POST, the other an HTTP DELETE, as shown in the docs.

Keerthana_Shan1
Level 2

Re: How to differentiate add/remove lead to list request

Thanks Sanford. It was working fine now.