Push (v2)

Change push preferences

Send only the keys to change; enabled is the master switch for every push.

put/api/v2/push/preferences

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v2/push/preferences
  • Auth: HTTP bearer

Request body

enabledboolean

The master switch.

pre_trip_countdownboolean
packing_reminderboolean
vote_notificationsboolean
are_trip_reminders_enabledboolean
are_price_drops_enabledboolean
is_family_activity_enabledboolean
is_weekly_summary_enabledboolean
wants_gear_recommendationsboolean
are_desktop_notifications_enabledboolean

Example request

{
  "enabled": true,
  "pre_trip_countdown": true,
  "packing_reminder": true,
  "is_weekly_summary_enabled": true
}

Response

enabledboolean

Example response

{
  "enabled": true,
  "preferences": {
    "pre_trip_countdown": true,
    "packing_reminder": true,
    "vote_notifications": false,
    "are_trip_reminders_enabled": false,
    "are_price_drops_enabled": false,
    "is_family_activity_enabled": false,
    "is_weekly_summary_enabled": false,
    "wants_gear_recommendations": false,
    "are_desktop_notifications_enabled": false
  },
  "topics": [
    {
      "topic": "vote_closing",
      "preference": "vote_notifications",
      "label": "Vote results"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.