I have a database which I can see in the App42 Management Console. I don't remember how I created it, but it wascreated with:
String dbName = "TEST";
String collectionName = "foo";
Anyway I deleted all the documents and collections but "TEST" still remains.
I want to make a new database with the following:
String dbName = "TOTMPsubscriptions";
String collectionName = "subscriptions"
I thought these statements would do that:
String subscribedUserJSON = "{\"username\":\"" +app42userName+ "\",\"expirationdate\":\"2014-6-27\"}";
storageService.InsertJSONDocument(dbName, collectionName, subscribedUserJSON, new StorageResponse());
But I get the following exception:
Exception is : com.shephertz.app42.paas.sdk.csharp.App42BadParameterException: {"httpErrorCode":"400", "appErrorCode":"2610", "message":"Bad Request", "details":"The request parameters are invalid. Storage '[TEST]' already exists."}