Make updates and terminate running Live Activities.

Overview

This API enables you to update active Live Activities. For details on adding Live Activity support to your app, refer to our Live Activities Quickstart to set up Live Activities in your app.


Example

curl --request POST \
     --url https://onesignal.com/api/v1/apps/app_id/live_activities/YOUR_ACTIVITY_ID/notifications \
     --header 'Authorization: Basic YOUR_REST_API_KEY' \
     --header 'Content-Type: application/json' \
     --header 'accept: application/json' \
     --data '
{
  "event": "update",
  "event_updates": {
    "message": "The content available to the Live Activity from the defined ContentState."
  },
  "name": "Internal OneSignal Notification Name",
  "contents": {
    "en": "English Message"
  },
  "headings": {
    "en": "English Message"
  },
  "sound": "beep.wav",
  "stale_date": 1695760785,
  "dismissal_date": 1703505600,
  "priority": 10
}

Language