How To Make An Upsert In REST API?

Version 1
Visibility: Open to anyone

    a. Header name:

    Upsert-Mode : true

     

    b. POST does not accept 'LeadId' in the path. Please pass this attribute in POST body.

    Sample:

    {

    "Name": "LeadupdateusingUpsert2",

      "LeadId": 300000104907675

    }

    URL: https://.......fa.em2.oraclecloud.com/crmRestApi/resources/latest/leads <== No lead id here