---
title: "update(_:alertConfiguration:)"
framework: activitykit
role: symbol
role_heading: Instance Method
path: "activitykit/activity/update(_:alertconfiguration:)"
---

# update(_:alertConfiguration:)

Updates the dynamic content of a Live Activity and alerts a person about the Live Activity update.

## Declaration

```swift
func update(_ content: ActivityContent<Activity<Attributes>.ContentState>, alertConfiguration: AlertConfiguration? = nil) async
```

## Parameters

- `content`: The updated dynamic content for the Live Activity. The size of its doc://com.apple.activitykit/documentation/ActivityKit/ActivityContent/state property can’t exceed 4KB in size.
- `alertConfiguration`: The alert configuration you use to configure how the system notifies a person about the updated content of the Live Activity.

## Mentioned in

Displaying live data with Live Activities

## Discussion

Discussion The system ignores updates to a Live Activity that’s in the ActivityState.ended state.

## See Also

### Updating a Live Activity

- [update(_:)](activitykit/activity/update(_:).md)
- [AlertConfiguration](activitykit/alertconfiguration.md)
- [update(_:alertConfiguration:timestamp:)](activitykit/activity/update(_:alertconfiguration:timestamp:).md)
