Can anyone walk me through the steps to upload a dataset via the API?

I'm running into a couple issues trying to get this to work.

  1. I think (but am not sure) that the dataset has to initially be created by the API.
    1. If that's the case it requires a schema file and I haven't gotten one to work correctly. Anyone have an example that I can use?

  1. Once that is done, if anyone has a working script that uploads the data, I would appreciate it.

Thanks in advance!