Method: Auth0::Api::V2::Actions#action

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

#action(action_id) ⇒ json Also known as: get_action

Get an action by id.

Parameters:

  • action_id (string)

    The action_id of the user to retrieve.

Returns:

  • (json)

    Returns the action with the given action_id if it exists.

Raises:

See Also:



57
58
59
60
61
# File 'lib/auth0/api/v2/actions.rb', line 57

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