Changing ou means updating the value of uid_adscontainer on the adsaccount object, and there are quite a few methods this could be done depending on how your processes are configured.
A simple example can be you create a new process which takes some input parms and raise an event using the rest api which would trigger the process