Thanks for giving that information! I think you might need to provide the write mode of the media set as well (ie. transactional or transactionless).
You can follow the docs here on how to use the UI to populate all this information for you, and to check that you have all the parameters.
https://www.palantir.com/docs/foundry/transforms-python/media-sets#create-a-media-set