External API for running maintenance on ad-hoc machines

Hi team,

We’re looking to automate app deployments. Currently the workflow is:

  • user submits an app install request ticket
  • a tech adds the user to the relevant security group for the app deployment
  • the tech runs Immybot maintenance on the machine
  • the app is deployed since the user is now part of the security group

We would like to eliminate tech involvement entirely. The ideal workflow is:

  • user submits an app install request
  • request is picked up, probably by a Power Automate flow, and adds the user to the relevant group
  • maintenance is run on the machine from the flow, e.g. via an HTTP endpoint, and the app is deployed like normal
  • if the app is not compliant after maintenance is run, a ticket is created/updated for a tech to take a look (via Power Automate)

What’s the recommended approach here? Is this possible? (Mainly asking about the last two points above - we can figure out the first two).

Thanks,
Max