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.
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
}
Thanks, I'll see if we can't get this in the pipeline
Can't repro this. Your second JSON payload shape looks correct.
{
"status":"new status",
"lookupField":"id",
"input":[{"id":123456}]
}