Method: FileboundClient::Client#put
- Defined in:
- lib/filebound_client.rb
#put(url, query_params = nil, body = nil) ⇒ Hash
Executes a PUT request on the current Filebound client session expecting JSON in the body of the request/response
61 62 63 64 |
# File 'lib/filebound_client.rb', line 61 def put(url, query_params = nil, body = nil) params = { headers: { 'Content-Type' => 'application/json' }, query: query_params, body: body } JSON.parse(perform('put', url, params), symbolize_names: true, quirks_mode: true) end |