Is there a way to set a thumbnail via the API?
There is unfortunately no way to do this via the API. To confirm, are you looking to choose which frame is used for the thumbnail (which can be done in-app), or are you trying to supply a custom thumbnail?
If the latter, I encourage you to submit a feature request right here!