How to differentiate add/remove lead to list request | Community
Skip to main content
Keerthana_Shan1
Level 2
Apr 17, 2018 10:30 AM UTC
Solved

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_Lists )

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 17, 2018 6:18 PM UTC

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.

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 17, 2018 6:18 PM UTC

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.

Translate
Keerthana_Shan1
Level 2
Apr 18, 2018 4:34 AM UTC

Thanks Sanford. It was working fine now.

Translate