Method: FileboundClient::Endpoints::Files#file_add_comment

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

#file_add_comment(file_id, comment_data, query_params = nil) ⇒ Hash

Adds a comment to file

Parameters:

  • file_id (int)

    the file key

  • comment_data (Hash)

    the comment to add

Returns:

  • (Hash)

    the newly added file comment hash


79
80
81
# File 'lib/filebound_client/endpoints/files.rb', line 79

def file_add_comment(file_id, comment_data, query_params = nil)
  put("/files/#{file_id}/comments", nil, comment_data)
end