Leads

POST {{api-domain}}/crm/v2/Leads/upsert

To upsert records in the Leads module.

Request Body

{"data"=>[{"Company"=>"Zylker", "Email"=>"patricia.boyle2@zylker.com", "Industry"=>"ASP (Application Service Provider)", "No_of_Employees"=>100, "Annual_Revenue"=>10000, "Twitter"=>"patricia", "Website"=>"https://www.patriciaboyle.com", "Salutation"=>"Ms.", "First_Name"=>"Patricia", "Lead_Status"=>"Contacted", "$review"=>nil, "Email_Opt_Out"=>true, "Mobile"=>"89898989893", "Last_Name"=>"Boyle", "Layout"=>{"name"=>"Standard", "id"=>"{{layout_id}}"}, "Lead_Source"=>"Employee Referral"}]}

RESPONSES

status: OK

{"data":[{"code":"SUCCESS","duplicate_field":null,"action":"insert","details":{"Modified_Time":"2021-05-11T12:56:03+00:00","Modified_By":{"name":"Patricia Boyle","id":"738964000000291009"},"Created_Time":"2021-05-11T12:56:03+00:00","id":"738964000002148126","Created_By":{"name":"Patricia Boyle","id":"738964000000291009"}},"message":"record added","status":"success"}]}