8 Replies Latest reply on Feb 27, 2018 3:32 PM by Jep Castelein

    REST API | Create Or Update Lead | Company update not allowed

    Faryal Ali

      Hi,

       

      I am using REST API for leads' sync with multiple instances of marketo. I am syncing a lead via Leads API call for Create and Update [http://developers.marketo.com/rest-api/lead-database/leads/#create_and_update ]. It is working fine for most of the instances. But for one of the instance, I am getting "Company update not allowed". I found this in list of record level error codes [http://developers.marketo.com/rest-api/error-codes/ ]. But, there is no further documentation on how to resolve this error. Is it due to some permission issue for particular field? How can I resolve this error?

       

      Sample Service Call: https://988-AGF-883.mktorest.com/rest/rest/v1/leads.json

      Sample Request Body: {"action":"createOrUpdate","lookupField":"email","input":[{"phone":"123456","mofEndpointsLeadForm":"abc","state":"Massachusetts","facebookId":"","linkedInId":"","mBDR":"Yes","address2":"","city":"test","mPrimaryBackupDataRecovery":"test","title":"Marketing Manager, Demand Generation","postalCode":"","firstName":"test","twitterDisplayName":"","lastName":"test","email":"test@test.com","company":"test"}]}

      Response: {"requestId":"780c#161ba0dc40e","result":[{"status":"skipped","reasons":[{"code":"1021","message":"Company update not allowed"}]}],"success":true}