Trying to create a file by API call