Method: Auth0::Api::V2::Actions#patch_trigger_bindings

Defined in:
lib/auth0/api/v2/actions.rb

#patch_trigger_bindings(trigger_id, body = nil) ⇒ json Also known as: update_trigger_bindings

Update the actions that are bound (i.e. attached) to a trigger.

Parameters:

  • trigger_id (string)

    An actions extensibility point.

  • body (hash) (defaults to: nil)

    The optional parameters to update.

Returns:

  • (json)

    Returns the bindings that were updated.

Raises:

See Also:



145
146
147
148
149
150
# File 'lib/auth0/api/v2/actions.rb', line 145

def patch_trigger_bindings(trigger_id, body = nil)
  raise Auth0::MissingTriggerId, 'Must supply a valid trigger_id' if trigger_id.to_s.empty?
  raise Auth0::InvalidParameter, 'Must supply a valid body' if body.to_s.empty? || body.empty?
  path = "#{actions_path}/triggers/#{trigger_id}/bindings"
  patch(path, body)
end