Hi Mikhail,
I am sorry to say what you are asking for is not possible via the API, subscriptions and plans are not manageable via the Opsenie API. The "Account API" only provides a "get" method, by design we have not included any "set" no method in the API. You can use https://docs.opsgenie.com/docs/account-api to construct logic in a script, if your userCount value is close to exceeding the maxUserCount value, send "create alert" using Alert API https://docs.opsgenie.com/docs/alert-api#create-alert.
Thanks and kind regards,
Allen Barnard
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.