Looking at what you’re passing in mounts, I think you’re just missing the required volume field which represents the ID of the Fly Volume to mount (like vol_2n0l3vl60qpv635d).
Note that mounts refers to volumes that already exist. If you aren’t already, you’ll first need to ensure the volume you’d like to mount has been created. You can create a volume by POSTing to the /apps/:app_name/volumes endpoint: https://docs.machines.dev/swagger/index.html#/Volumes/Volumes_create.
Hey @benbot, try with the property name volume instead of volumeId. Does your request succeed then?
By the way, thanks for pointing out what’s in the doc – I missed that volume isn’t required. Passing just mount name and pathshould work, so I’ve mentioned this internally in case I’m missing anything else.
In the meantime, if it works for you, I suggest passing in a volume ID in your create Machine requests.
If you remember to, could you update me on what the outcome of your internal comms is?
I’d like to know if volume ends up being a required field OR if we can omit it.