This function uploads a file to the Raw Data Repository (RDR) by making a POST request. It takes a file identifier (which is built using get_upload_file_identifier) and the full file path as input arguments. The function sends the file and additional headers to the API, logs any errors, and returns the parsed response.

make_rdr_file(file_identifier, full_file_path)

Arguments

file_identifier

A unique identifier (string) for the file being uploaded.

full_file_path

The full path (string) to the local file to be uploaded.

Value

A list containing the parsed response from the RDR API after the file upload.

Examples

 file_identifier <- "example_file_001"
 full_file_path <- "path/to/your/file.txt"
 make_rdr_file(file_identifier, full_file_path)