Update Live Activity
Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/ so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities only.
PUT /live-activity/stream/{stream_key}.
This endpoint updates an existing Live Activity by activity_id.
metrics: send the latestmetricsarray.stats: send the latestmetricsarray for up to 8 labeled values.segmented_progress: send the latestcurrent_stepand, if needed, an updatednumber_of_steps.progress: send the latestpercentage, orvaluewithupper_limit.timer: update visible fields such astitle,subtitle, orcolor. Leaveduration_secondsout unless you want to change the timer.actionis optional if you want to set or replace the Live Activity button.typeis optional on update if the existing Live Activity already has a type.
segmented_progress, you can update both current_step and
number_of_steps. Use this when the workflow gains or loses steps after the
activity has already started.Authorizations
Required. Include Authorization: Bearer ask_123456789 in every request. Replace ask_123456789 with your API key.
Body
Update an existing Live Activity by activity_id.
Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, and segmented_progress Live Activities.
Optional secondary action button. Supported only for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.