Method: PCO::API::Endpoint#patch

Defined in:
lib/pco/api/endpoint.rb

#patch(body = {}) ⇒ Object



62
63
64
65
66
67
68
69
# File 'lib/pco/api/endpoint.rb', line 62

def patch(body = {})
  @last_result = @connection.patch(@url) do |req|
    req.body = body.to_json
  end
  _build_response(@last_result)
rescue Errors::TooManyRequests => e
  _retry_after_timeout?(e) ? retry : raise
end