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.
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 |