Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 24, 2024Dec 24 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. 😅
December 24, 2024Dec 24 Community Expert Solution There is no way in which to do this in batches unfortunately.
December 24, 2024Dec 24 Author 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 December 24, 2024Dec 24 by InfinityRazz
December 24, 2024Dec 24 Community Expert Take a look at the API, as you may be able to update them from there
December 24, 2024Dec 24 Author 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 December 24, 2024Dec 24 by InfinityRazz
December 24, 2024Dec 24 Community Expert Cloud users do indeed have access to the API. What issues are you having trying to access that?
December 24, 2024Dec 24 Author 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 December 24, 2024Dec 24 by InfinityRazz
December 27, 2024Dec 27 Community Expert Not being able to activate it yourself is not the same as not being able to use it on cloud. It just means we need to add those constants for you. If you would like that doing, please submit a ticket