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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.