Method: FileboundClient::Endpoints::Files#file_update

Defined in:
lib/filebound_client/endpoints/files.rb

#file_update(file_id, file) ⇒ Hash

Updates a file

Parameters:

  • file_id (int)

    the file key

  • file (Hash)

    the file hash with updated fields

Returns:

  • (Hash)

    the updated file hash



41
42
43
# File 'lib/filebound_client/endpoints/files.rb', line 41

def file_update(file_id, file)
  post("files/#{file_id}", nil, file)
end