Skip to main content
Level 2
Nov 10, 2022 8:08 AM UTC
Solved

How to Update lead partition using REST API?

Please provide the solution for how to move the lead from one partition to another partition. I have tried with this link: https://developers.marketo.com/blog/how-to-specify-lead-partitions-using-the-rest-api/ 

Faced with this error:

"reasons": [

                {

                    "code": "1006",

                    "message": "Field 'partitionName' not found"

                },

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Darshil_Shah1
Darshil_Shah1Accepted solution
Adobe Champion, Community Advisor, UG Leader
Nov 10, 2022 8:54 AM UTC

Can you please share the endpoint and the payload that you're sending with the request? Looking at the error, chances are there that you're passing the partitionName in the input parameter of the leads.json endpoint's payload.

 

Also, AFAIK, using the leads.json endpoint, you can update a person in a particular lead partition, but you cannot change the person partition itself. However, you can specify the person partition for a person during the lead creation process in the lead endpoint's payload and the person would be created in the mentioned partition.

 

In order to update the person partition of a person, you'd need to use the update partition endpoint. You'd need to use the leadid (id) in the payload as the lookup field. Below is the sample payload for the update partition endpoint FYR - 

 

{ "input":[ { "id":"10113", "partitionName":"Default" } ] }

 

Please let us know if you have any questions.

 

6 replies

Darshil_Shah1
Adobe Champion, Community Advisor, UG Leader
Darshil_Shah1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Nov 10, 2022 8:54 AM UTC

Can you please share the endpoint and the payload that you're sending with the request? Looking at the error, chances are there that you're passing the partitionName in the input parameter of the leads.json endpoint's payload.

 

Also, AFAIK, using the leads.json endpoint, you can update a person in a particular lead partition, but you cannot change the person partition itself. However, you can specify the person partition for a person during the lead creation process in the lead endpoint's payload and the person would be created in the mentioned partition.

 

In order to update the person partition of a person, you'd need to use the update partition endpoint. You'd need to use the leadid (id) in the payload as the lookup field. Below is the sample payload for the update partition endpoint FYR - 

 

{ "input":[ { "id":"10113", "partitionName":"Default" } ] }

 

Please let us know if you have any questions.

 

Translate
Level 2
Nov 10, 2022 9:28 AM UTC

Hi @darshil_shah1,

Thanks for your response.

But I want to update from one partition to another partition. Are there any other options?

 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Nov 10, 2022 9:34 AM UTC

But I want to update from one partition to another partition. Are there any other options?


Please read Darshil’s last post more carefully.

Translate