I am working on a Laravel application on which each user is assigned their own unique Hestia Package using the api.
I am stuck with a problem, I can’t find a method to update a package using the API. For example, I want to edit the bandwith of a package, the disk space etc…
I also wonder whether Hestia allows a single user to have multiple packages.
I also wonder whether Hestia allows a single user to have multiple packages.
Why would you want it?
Personally I would set all users on unlimited disk / bandwidth and check once a day if they exceed the limits you set in your database… If not warn / suspend / invoice them accordingly
So if I wanted to create / override a package through the API I would first need to make a request to create a temporary file, containing the params and then make a request to add the package?
But it would update every user that has this package assigned.
As told I would just use all users unlimited packages and pull it via the api daily… Unless you have enable file quotas then only update the disk usage .
The thing I worried about was that when a user already had a hestia account and a package, and purchased another package that it would override their previous package limits rather than increment them.
As I found out, multiple users can have the same email so now I am generating a random username for each order and keeping the email the same.