I need to replicate the below API call in Robot Framework:
curl -X POST \"http://xyz/api/createApp\" -H \"Content-Type:application/json\" -d @/tmp/testfile.jso
http://bulkan.github.io/robotframework-requests/#Post has files parameter. And what you could do is use Get File keyword from OperatingSystem library and pass that to your Post keyword.
Get File