in gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb [299:359]
def update_error_with_http_info(project_id, fingerprint, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ErrorsApi.update_error ...'
end
if @api_client.config.client_side_validation && project_id.nil?
fail ArgumentError, "Missing the required parameter 'project_id' when calling ErrorsApi.update_error"
end
if @api_client.config.client_side_validation && fingerprint.nil?
fail ArgumentError, "Missing the required parameter 'fingerprint' when calling ErrorsApi.update_error"
end
if @api_client.config.client_side_validation && body.nil?
fail ArgumentError, "Missing the required parameter 'body' when calling ErrorsApi.update_error"
end
local_var_path = '/projects/{projectId}/errors/{fingerprint}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'fingerprint' + '}', CGI.escape(fingerprint.to_s))
query_params = opts[:query_params] || {}
header_params = opts[:header_params] || {}
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
form_params = opts[:form_params] || {}
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
return_type = opts[:debug_return_type] || 'Error'
auth_names = opts[:debug_auth_names] || ['internalToken']
new_options = opts.merge(
:operation => :"ErrorsApi.update_error",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ErrorsApi#update_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end