Operations API
Leads
Update Lead
this endpoint ( post post ) updates a lead if the request succeeds, it returns a lead object docid\ datefzmzfytk1y4i2gdzj permissions customers edit webhook event customer events docid\ vpxf3upxl n7gflcvvism path parameters id string the id of the lead to update body parameters name string the customer's first name last name string the customer's last name email string the customer's email address locale string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the customer's language the default is english ( en ) country string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) a two letter country code (iso 3166) representing the customer's country phone string the customer's primary phone number timezone offset string the utc timezone offset for this customer example +03 00 priority string the possible values are low , normal , medium and high the default is normal lead status string the possible values are qualified , unqualified , contacted , followup , new lead , attempt to contact or a custom string it will be saved if the customer category is set to lead var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { name 'john', last name 'doe', country 'de', email 'john doe\@tamio com' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/leads/update/c5f3b078 5520 4694 a4d1 d45885a6314e", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { name 'john', last name 'doe', country 'de', email 'john doe\@tamio com' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/leads/update/c5f3b078 5520 4694 a4d1 d45885a6314e", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request post 'https //api tamio com/v2/leads/update/c5f3b078 5520 4694 a4d1 d45885a6314e' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"name" "john","country" "de","email" "john doe\@plugnpaid com","last name" "doe"}'{ "status" 200, "lead" { "id" "c5f3b078 5520 4694 a4d1 d45885a6314e", "email" "john doe\@tamio com", "name" "john", "last name" "doe", "country" "de", "locale" "en", "billing addresses" \[], "shipping addresses" \[], "created at" 1664635710, "stripe customer id" null, "object" "customer", "teammate id" null, "timezone offset" "+00 00", "category" "lead", "priority" "normal", "source" "import", "affiliate partner id" null, "lead status" "new lead" } }