LeadStatusChanges

Update a lead follow-up.

Changed on

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

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    HTTP bearer

Path parameters

leadId, string required

The ID of the lead whose follow-up should be updated.

Request body

LeadFollowUpUpdateRequest required

Completes or reschedules exactly the follow-up version the operator viewed.

expectedStatusId, string required

Identifier of the current status observed by the client; a mismatch causes a conflict.

expectedRevision, integer

Revision observed by the client; a mismatch causes a conflict instead of overwriting a newer follow-up.

dueAt, string date-time nullable

The new time, or null to complete the follow-up.

Response

The updated lead status entry after completing or rescheduling the observed follow-up version.

LeadStatusChangeResponse required

Describes an auditable lead status transition, including the previous and new status, source, actor, and effective time.

leadStatusId, string nullable

Configured organization status ID, independent of its display name and history entry ID.

revision, integer

Monotonic revision of the lead's current status and scheduling state.

followUpCompletedAt, string date-time nullable

When this follow-up was completed; email/call activity alone does not complete it.

isDemo, boolean

Whether this record belongs to demo data.

id, string

Unique Leadping identifier for this lead status change.

leadId, string

The lead ID associated with this lead status change.

leadName, string nullable

The display name of the lead associated with this lead status change.

leadEmail, string email nullable

The lead's email address, used for Gravatar fallback.

leadAvatarUrl, string uri nullable

The lead's profile image URL, when available.

type, string

Category of status change recorded for the lead.

outcome, string

Result of the interaction or workflow step that caused the status change.

category, 'Open' | 'Qualified' | 'Converted' | 'Lost' | 'Invalid' | 'Duplicate' nullable

Controlled lead status change categories used for reporting, automation, and analytics.

oldLeadStatusChangeId, string nullable

Unique identifier of the old lead status change associated with this Leadping lead status change.

oldLeadStatusChangeType, string nullable

Old lead status change type classification for this Leadping lead status change.

oldLeadStatusChangeOutcome, string nullable

Old lead status change outcome associated with this Leadping lead status change.

newLeadStatusChangeId, string nullable

Unique identifier of the new lead status change associated with this Leadping lead status change.

notes, string

The operator or customer notes recorded for this lead status change.

reason, string nullable

The reason this lead status change was changed.

changedByUserId, string nullable

Unique identifier of the Leadping user who made the change.

changedByAutomationId, string nullable

Unique identifier of the automation that changed the lead status change, when applicable.

changedAt, string date-time nullable

Date and time when the lead status change change occurred.

changeSource, 'User' | 'AI' | 'Automation' | 'System' | 'API' nullable

Known sources that can change a lead's current lead status change.

timestamp, string date-time

UTC timestamp for timestamp on this lead status change.

createdAt, string date-time

UTC timestamp for created at on this lead status change.

updatedAt, string date-time

UTC timestamp for updated at on this lead status change.

followUpStatus, string nullable

The current follow up status for this lead status change.

callbackAt, string date-time nullable

UTC timestamp for callback at on this lead status change.

taskDueAt, string date-time nullable

UTC timestamp for task due at on this lead status change.

appointmentStartAt, string date-time nullable

UTC timestamp for appointment start at on this lead status change.

appointmentEndAt, string date-time nullable

UTC timestamp for appointment end at on this lead status change.

appointmentNotes, string nullable

Additional scheduling or preparation notes for the related appointment.

assignedToUserId, string nullable

The assigned to user ID associated with this lead status change.

relatedCallEventId, string nullable

The related call event ID associated with this lead status change.

isMissedCallFollowUp, boolean

Whether this lead status change is missed call follow up.

sourceId, string nullable

The source ID associated with this lead status change.

Changes

    • breaking

      removed the media type text/json from the request body

    • breaking

      removed the media type text/json for the response with the status

    • breaking

      removed the media type text/plain for the response with the status