This is possible with the magento-improve-api plugin. If you need to control which attributes your configurable product is configurable across, you'll need one of the forks of that plugin in
- goodscloud/magento-improve-api
- jdurand/magento-improve-api
- dexteradeus/magento-improve-api