LeadStatusChanges

Update a lead status history entry

Changed on

Update a Leadping lead status history entry through the API. When the entry is current, the operation also updates the lead's current status to match.

put/lead-status-changes/{id}

Request

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

Path parameters

id, string required

The ID of the lead status change.

Request body

LeadStatusChangeRequest required

Defines a lead status transition or correction, including its target status, effective time, source, and explanatory context.

leadStatusId, string nullable

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

expectedCurrentStatusId, string nullable

Optional optimistic concurrency guard for the status currently displayed by the client.

expectedRevision, integer nullable

Optional revision guard, including when the lead has no persisted status history yet.

completeFollowUp, boolean

Whether the scheduled follow-up is explicitly complete.

type, string required

Category of status change being recorded for the lead.

outcome, string required

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.

notes, string nullable

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

reason, string nullable

The reason this lead status change was changed.

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.

Response

Returns the lead status change response.

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

    • info

      added the new optional request property allOf[#/components/schemas/LeadStatusChangeRequest]/leadStatusId (media type: application/json)

    • info

      added the new optional request property allOf[#/components/schemas/LeadStatusChangeRequest]/leadStatusId (media type: application/*+json)

    • info

      added the non-success response with the status

    3 more changes in this revision