Add mLab API method of freeing space#1266
Add mLab API method of freeing space#1266cascer1 wants to merge 5 commits intoopenaps:masterfrom cascer1:master
Conversation
|
Followed the instructions, initially trying to clear out treatments. I generated the following put request(removed confidential bits) but got a "{ "message" : "No Content-Type set, expecting 'application/json'."}" Also, the other entries example is completely confusing, a brief explanation of the lt field would be useful, unless I'm missing something: |
|
A little closer, I missed putting [] in the body. Now have this error: { "message" : "An unexpected error occurred while attempting to insert objects: Could not parse JSON parameter, please double-check syntax and encoding: {\n "created_at": {\n "$regex": "(2018-0[1-9].)”,\n "$options": "g"\n }\n}: \n{\n "created_at": {\n "$regex": "(2018-0[1-9].)”,\n "$options": "g"\n }\n}\n ^"} |
|
I'm super for this change!!! |
|
@rhysjones Could you please post the response you're getting in a code block (surrounded by backticks, or by clicking the |
Instead of throwing everything out, the mLab API can be used to only remove old records. This can be useful if you use reports a lot.