You can check which API calls are used by investigating the network calls in your browsers develeoper tools.
The "Apply Configuration" button call the {node}->network API with PUT. It assumes that there is already a /etc/network/interfaces.new file present with the new configuration that should be applied.