Method: Bugsnag::Api::Client::Errors#update_errors
- Defined in:
- lib/bugsnag/api/client/errors.rb
#update_errors(project_id, ids, operation, options = {}) ⇒ Sawyer::Resource
Update an Error
| 40 41 42 43 44 45 46 47 48 49 50 51 | # File 'lib/bugsnag/api/client/errors.rb', line 40 def update_errors(project_id, ids, operation, = {}) case ids when String patch "projects/#{project_id}/errors/#{ids}", .merge({:operation => operation}) when Array defaults = {:operation => operation, :query => {:error_ids => ids}} merged_opts = deep_merge(defaults, ) patch "projects/#{project_id}/errors", merged_opts else raise ArgumentError, "ids must be a String or an Array" end end |