While messing around with the API (I was trying to change my device’s name), I accidentally called the API using DELETE (aka my dodgy coding)
i.e
DELETE https://api.spark.io/v1/devices/XXXXXXXXXXXXXXXX
Which subsequently removed it from the build IDE. Interestingly the core remained connected to the cloud.
I was able to re-add my core via the build IDE. I was wondering if there was a way to add a device via the API? Neither Add/Remove device seem to be documented (yet ;)).