Method: FileboundClient::Endpoints::Files#file_update_by_key_value

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

#file_update_by_key_value(project_id, key_value, file) ⇒ Hash

Adds file based on project key value

Parameters:

  • project_id (int)

    the project key value

  • key_value (String)

    the key value

  • file (Hash)

    the file hash with updated fields

Returns:

  • (Hash)

    the updated file hash



57
58
59
# File 'lib/filebound_client/endpoints/files.rb', line 57

def file_update_by_key_value(project_id, key_value, file)
  put("/files/#{project_id}/ByKeyValue", { value: key_value }, file)
end