Update a lead follow-up.
curl --request PUT \
--url https://api.leadping.ai/leads/{leadId}/follow-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedStatusId": "<string>"
}
'import requests
url = "https://api.leadping.ai/leads/{leadId}/follow-up"
payload = { "expectedStatusId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{leadId}/follow-up");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"expectedStatusId\": \"<string>\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/leads/{leadId}/follow-up")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedStatusId\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedStatusId: '<string>'})
};
fetch('https://api.leadping.ai/leads/{leadId}/follow-up', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{leadId}/follow-up"
payload := strings.NewReader("{\n \"expectedStatusId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{leadId}/follow-up",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'expectedStatusId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"leadStatusId": "<string>",
"revision": 123,
"followUpCompletedAt": "2023-11-07T05:31:56Z",
"isDemo": true,
"id": "<string>",
"leadId": "<string>",
"leadName": "<string>",
"leadEmail": "jsmith@example.com",
"leadAvatarUrl": "<string>",
"type": "<string>",
"outcome": "<string>",
"category": "Open",
"oldLeadStatusChangeId": "<string>",
"oldLeadStatusChangeType": "<string>",
"oldLeadStatusChangeOutcome": "<string>",
"newLeadStatusChangeId": "<string>",
"notes": "<string>",
"reason": "<string>",
"changedByUserId": "<string>",
"changedByAutomationId": "<string>",
"changedAt": "2023-11-07T05:31:56Z",
"changeSource": "User",
"timestamp": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"followUpStatus": "<string>",
"callbackAt": "2023-11-07T05:31:56Z",
"taskDueAt": "2023-11-07T05:31:56Z",
"appointmentStartAt": "2023-11-07T05:31:56Z",
"appointmentEndAt": "2023-11-07T05:31:56Z",
"appointmentNotes": "<string>",
"assignedToUserId": "<string>",
"relatedCallEventId": "<string>",
"isMissedCallFollowUp": true,
"sourceId": "<string>"
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Conflict",
"status": 409,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Request Failed",
"status": 415,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed."
}LeadStatusChanges
Update a lead follow-up.
Completes or reschedules a lead’s follow-up using the version observed by the client. Returns a conflict if the follow-up has changed.
PUT
/
leads
/
{leadId}
/
follow-up
Update a lead follow-up.
curl --request PUT \
--url https://api.leadping.ai/leads/{leadId}/follow-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedStatusId": "<string>"
}
'import requests
url = "https://api.leadping.ai/leads/{leadId}/follow-up"
payload = { "expectedStatusId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{leadId}/follow-up");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"expectedStatusId\": \"<string>\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/leads/{leadId}/follow-up")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedStatusId\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedStatusId: '<string>'})
};
fetch('https://api.leadping.ai/leads/{leadId}/follow-up', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{leadId}/follow-up"
payload := strings.NewReader("{\n \"expectedStatusId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{leadId}/follow-up",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'expectedStatusId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"leadStatusId": "<string>",
"revision": 123,
"followUpCompletedAt": "2023-11-07T05:31:56Z",
"isDemo": true,
"id": "<string>",
"leadId": "<string>",
"leadName": "<string>",
"leadEmail": "jsmith@example.com",
"leadAvatarUrl": "<string>",
"type": "<string>",
"outcome": "<string>",
"category": "Open",
"oldLeadStatusChangeId": "<string>",
"oldLeadStatusChangeType": "<string>",
"oldLeadStatusChangeOutcome": "<string>",
"newLeadStatusChangeId": "<string>",
"notes": "<string>",
"reason": "<string>",
"changedByUserId": "<string>",
"changedByAutomationId": "<string>",
"changedAt": "2023-11-07T05:31:56Z",
"changeSource": "User",
"timestamp": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"followUpStatus": "<string>",
"callbackAt": "2023-11-07T05:31:56Z",
"taskDueAt": "2023-11-07T05:31:56Z",
"appointmentStartAt": "2023-11-07T05:31:56Z",
"appointmentEndAt": "2023-11-07T05:31:56Z",
"appointmentNotes": "<string>",
"assignedToUserId": "<string>",
"relatedCallEventId": "<string>",
"isMissedCallFollowUp": true,
"sourceId": "<string>"
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Conflict",
"status": 409,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Request Failed",
"status": 415,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request could not be completed."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed."
}Authorizations
Body
application/jsontext/jsonapplication/*+json
The observed follow-up version and the requested completion or rescheduling changes.
Completes or reschedules exactly the follow-up version the operator viewed.
Response
The updated lead status entry after completing or rescheduling the observed follow-up version.
Describes an auditable lead status transition, including the previous and new status, source, actor, and effective time.

