SOLVED

Re: Receiving 605 Request method 'POST' not supported for pushToMarketo endpoint

Go to solution
Anonymous
Not applicable

Re: Receiving 605 Request method 'POST' not supported for pushToMarketo endpoint

Also I use this url

$this->host . "/rest/v1/leads.json?access_token=" . $token;

for creating the lead, which is working. host and token portions are correct.

SanfordWhiteman
Level 10 - Community Moderator

Re: Receiving 605 Request method 'POST' not supported for pushToMarketo endpoint

I will say that the error message you get when attempting to set a lead to the same or previous status is very misleading, since it's the same as if the lead truly does not exist in the database:

{

  "requestId": "8494#158645ade0c",

  "result": [

    {

      "id": 3893678,

      "status": "skipped",

      "reasons": [

        {

          "code": "1004",

          "message": "Lead not found"

        }

      ]

    }

  ],

  "success": true

}

Kenny Elkington

Kenny_Elkington
Marketo Employee

Re: Receiving 605 Request method 'POST' not supported for pushToMarketo endpoint

Thanks, I'll see if we can't get this in the pipeline

SanfordWhiteman
Level 10 - Community Moderator

Re: Receiving 605 Request method 'POST' not supported for pushToMarketo endpoint

Can't repro this.  Your second JSON payload shape looks correct.

{

"status":"new status",

"lookupField":"id",

"input":[{"id":123456}]

}