SOLVED

How to Update lead partition using REST API?

Go to solution
dhatchayini7
Level 2

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"

                },

1 ACCEPTED SOLUTION

Accepted Solutions
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to Update lead partition using REST API?

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.

 

View solution in original post

6 REPLIES 6
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to Update lead partition using REST API?

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.

 

dhatchayini7
Level 2

Re: How to Update lead partition using REST API?

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 - Community Moderator

Re: How to Update lead partition using REST API?


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


Please read Darshil’s last post more carefully.

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to Update lead partition using REST API?

You should be able to update the person partition of a person using the update person partition endpoint as per the last part of my previous comment. Are you looking to accomplish something else?

 

dhatchayini7
Level 2

Re: How to Update lead partition using REST API?

@Darshil_Shah1 Thanks Dharshil. Got it.

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to Update lead partition using REST API?

Great! You're very welcome.