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,
Back in April of last year one of the major product announcements from Opsgenie was the launch of the Incident investigation view which created a deep connection between Bitbucket and Opsgenie, empow...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events