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

# update(using:alertConfiguration:)

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

## Declaration

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

## Parameters

- `contentState`: The updated dynamic content for the Live Activity. The size of the encoded content 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.

## Discussion

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

## See Also

### Deprecated

- [request(attributes:contentState:pushType:)](activitykit/activity/request(attributes:contentstate:pushtype:).md)
- [update(using:)](activitykit/activity/update(using:).md)
- [end(using:dismissalPolicy:)](activitykit/activity/end(using:dismissalpolicy:).md)
- [contentState](activitykit/activity/contentstate-swift.property.md)
- [contentStateUpdates](activitykit/activity/contentstateupdates-swift.property.md)
- [Activity.ContentStateUpdates](activitykit/activity/contentstateupdates-swift.struct.md)
