InfinityRazz Posted Tuesday at 04:27 PM Posted Tuesday at 04:27 PM Hey community! Is there a simple way to batch update the expiration date of all active license keys generated by the site? Or would I be stuck manually updating every single license by hand? Using the cloud hosted community if that makes a difference at all 😛 Not really my area of expertise, and I'm weary of running any google found code for fear of damaging my community severely. 😅
Solution Marc Posted Tuesday at 04:30 PM Solution Posted Tuesday at 04:30 PM There is no way in which to do this in batches unfortunately.
InfinityRazz Posted Tuesday at 04:35 PM Author Posted Tuesday at 04:35 PM (edited) 5 minutes ago, Marc said: There is no way in which to do this in batches unfortunately. That's... unfortunate. 80+ license's by hands gonna be rough. :') May have to look into utilizing an external DB to handle expiration dates then, or see if we can rig something up in pages for a customized date.. 🤔 Edited Tuesday at 04:36 PM by InfinityRazz
Marc Posted Tuesday at 04:36 PM Posted Tuesday at 04:36 PM Take a look at the API, as you may be able to update them from there
InfinityRazz Posted Tuesday at 04:40 PM Author Posted Tuesday at 04:40 PM (edited) 8 minutes ago, Marc said: Take a look at the API, as you may be able to update them from there Sadly as a cloud user I don't have access to any api that requires me to edit constants in the index to activate it though right? The license key activation/usage api would work for that I believe (Activate license key, post activation/expiration date to my azure db on successful activation from Invision) but I can't activate it 😞 or i'm completely misunderstanding how that api works I feel like nothing in the rest api will allow me to edit the license directly, though I'm sure I could piecemeal something together with enough effort. 😛 A way to edit multiple licenses (or group edit expiration dates) in future versions sure would be a nice feature... 😉 https://tenor.com/rYclqw6noiG.gif Edited Tuesday at 04:44 PM by InfinityRazz
Marc Posted Tuesday at 04:44 PM Posted Tuesday at 04:44 PM Cloud users do indeed have access to the API. What issues are you having trying to access that?
InfinityRazz Posted Tuesday at 04:48 PM Author Posted Tuesday at 04:48 PM (edited) 5 minutes ago, Marc said: Cloud users do indeed have access to the API. What issues are you having trying to access that? I've been told in previous support requests that I can not activate this api myself.. And while the rest api is great for fetching data, it does little to provide editing data outside of pages/forums/groups (pretty much not license keys specifically). Like I know I could do a custom datetime/string field on the license/purchase object, then check if field is null or has invalid data on first usage, then post that and yadda yadda, But that requires ~ 2-4 other rest calls to fetch surrounding data. I'm just looking for something ez breezy to "click and run" pretty much 😛 Edited Tuesday at 04:50 PM by InfinityRazz
Recommended Posts