The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
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).
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in