Update email invalid field in Marketo through API | Community
Skip to main content
New Participant
August 31, 2023
Solved

Update email invalid field in Marketo through API

  • August 31, 2023
  • 1 reply
  • 1082 views

Hi team hope you are doing well.

Wanted to check if we can update the field Email Invalid from Lead database through API in Marketo.

I have checked the api docs (https://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#/) and have not found something that indicates it can be done.

Thanks.

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

Use the Sync lead POST API endpoint for this. If you don't intend to create new people in this process, I'd recommend you set the action parameter to updateOnly (default is createOrUpdate). Below is a sample request body for your reference. You can also use Id, certain available system fields, or any other custom field as the lookupField (default is email).

 

{ "action":"updateOnly", "lookupField":"email", "input":[ { "email":"someemail@example.com", "emailInvalid":false } ] }

 

You can also explore Marketo's Bulk Import API if you wish to perform this update for a large number of records. The above regular non-bulk API allows updating only up to 300 records in a single call.

1 reply

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
August 31, 2023

Use the Sync lead POST API endpoint for this. If you don't intend to create new people in this process, I'd recommend you set the action parameter to updateOnly (default is createOrUpdate). Below is a sample request body for your reference. You can also use Id, certain available system fields, or any other custom field as the lookupField (default is email).

 

{ "action":"updateOnly", "lookupField":"email", "input":[ { "email":"someemail@example.com", "emailInvalid":false } ] }

 

You can also explore Marketo's Bulk Import API if you wish to perform this update for a large number of records. The above regular non-bulk API allows updating only up to 300 records in a single call.