'Losing lead ids not specified' error returned for 'Merge Leads' resource even if I specify the leadIds | Community
Skip to main content
April 26, 2018
Solved

'Losing lead ids not specified' error returned for 'Merge Leads' resource even if I specify the leadIds

  • April 26, 2018
  • 1 reply
  • 3591 views

Hi,

I'm trying out the Merge Leads scenario passing values for leadIds but still I get the error response mentioned in $subject.

Below is the request I am sending.

POST https://743-YFC-765.mktorest.com/rest/v1/leads/67/merge.json

POST data:leadId=&leadIds=99%2C100&mergeInCRM=true

[no cookies]

Request Headers:

Connection: keep-alive

Authorization: Bearer 4f3w346e-abcd-1234-24d5-6sbf22f12b07:sn

Content-Type: application/json

Content-Length: 40

Host: 743-YFC-765.mktorest.com

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)

But still I'm seeing the below error.

{

:   "requestId":"5623#163001f056d",

:   "success":false,

:   "errors":

:   [

:   :   {

:   :   :   "code":"1003",

:   :   :   "message":"Losing lead ids not specified"

:   :   }

:   ]

}

What am I doing wrong here?

Regards,

Evanthika

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Your data should be in the query string, not the entity body.

1 reply

SanfordWhiteman
Level 10
April 26, 2018

You should be passing either leadId (with a string representing one value) or leadIds (as a list-like string representing multiple values)..

April 26, 2018

Hi Sanford,

The results are the same when I pass either one of those parameters as shown below.

Request when passing the LeadId

POST https://743-YFC-765.mktorest.com/rest/v1/leads/67/merge.json

POST data:

leadId=101

[no cookies]

Request Headers:

Connection: keep-alive

Authorization: Bearer 064f3161-221e-4147-bf68-d4bff2ea4a53:sn

Content-Type: application/json

Content-Length: 10

Host: 743-YFC-765.mktorest.com

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)

Request when passing the LeadIds

POST https://743-YFC-765.mktorest.com/rest/v1/leads/67/merge.json

POST data:

leadIds=99%2C100

[no cookies]

Request Headers:

Connection: keep-alive

Authorization: Bearer 1d571cac-9624-4f43-81a9-6dcf437920a0:sn

Content-Type: application/json

Content-Length: 16

Host: 743-YFC-765.mktorest.com

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)

Looks like something else is causing the issue? Any idea what that is?

Regards.

Evanthika

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
April 26, 2018

Your data should be in the query string, not the entity body.