400 Bad request is coming : API Error

As per freshworks helpdoc, we used same body request format but still API Error 400 Bad Request is coming. Please guide about it. Enclosing the attached screenshot for the same.

Kaushal Bansal

As far as I understand, the targetable object should referred to an existing object, so it should include an Id parameter.
Can you try adding an existing contact id?

We are creating new lead, thats why we cant use freshwork contact id. Please suggest

In that case, try creating a new lead first, use that lead’s id in targetable object and set targetable_type to lead. let me know if that works

1 Like