Import devices to product via API

Is there a way to import one or several devices using the Cloud API?

I see the dashboard hits:

POST https://api.particle.io/v1/orgs/:orgSlug/products/:productSlug/devices

with multipart/form data. Any way to do it with JSON?