module BrazeAPI::Endpoints::SubscriptionGroups::Status

Methods to call the subscription/status endpoint from a client instance

Constants

PATH

Public Instance Methods

update_status(args = {}) click to toggle source

The method to update a users subscription status Args object will look like: {subscription_state: 'subscribed', subscription_group_id: id, external_id: uuid} with either an external_id or an email and the subscription state and subscription group id

# File lib/braze_api/endpoints/subscription_groups/status.rb, line 14
def update_status(args = {})
  args.compact!
  post(PATH, params: args)
end