Method: Auth0::Api::V2::Actions#patch_action

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

#patch_action(action_id, body) ⇒ json Also known as: update_action

Update an existing action.

Parameters:

  • action_id (string)

    The action ID

  • body (hash)

    The optional parameters to update.

Returns:

  • (json)

    Returns the updated user.

Raises:

See Also:



81
82
83
84
85
86
# File 'lib/auth0/api/v2/actions.rb', line 81

def patch_action(action_id, body)
  raise Auth0::MissingActionId, 'Must supply a valid action_id' if action_id.to_s.empty?
  raise Auth0::InvalidParameter, 'Must supply a valid body' if body.to_s.empty? || body.empty?
  path = "#{actions_path}/actions/#{action_id}"
  patch(path, body)
end