Is there a way via the API to move a sub-account to a different parent, e.g. if a particular organizational group gets reorganized under a different unit, or if I decide I just want to organize my accounts differently?
I just scrutinized the Accounts - Canvas LMS REST API Documentation and there sure doesn't appear to be a way to modify an account's parent_account_id. I know you can do it via an SIS import; if no one offers a better way, perhaps you could generate an SIS import via the API?
Thank you. That was my reading too. I guess I could do a delete/create via the API, but that would involve loss of data.
You can definitely do it through the API without data loss by programmatically generating the necessary CSV file and then doing an SIS import on it via the API. I've used that process plenty of times and it works fine (generating a CSV file and importing it via the API, not your particular case of changing subaccount parents).
Retrieving data ...