How to Update lead partition using REST API? | Community
Skip to main content
Level 2
November 10, 2022
Solved

How to Update lead partition using REST API?

  • November 10, 2022
  • 1 reply
  • 2514 views

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.
Best answer by Darshil_Shah1

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.

 

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 10, 2022

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.

 

Level 2
November 10, 2022

Hi @darshil_shah1,

Thanks for your response.

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

 

SanfordWhiteman
Level 10
November 10, 2022

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


Please read Darshil’s last post more carefully.