Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
Hi. I want to change a subaccount's parent account (parent account is another sub-account). My code:
Even when I set parent_account_id
as an integer, it still doesn't work. The code doesn't throw an error, but it doesn't change the parent_account_id
. It keeps printing the old one.
api that I use: https://canvas.instructure.com/doc/api/accounts.html#method.accounts.update
Try nesting your params individually instead of grouped within account.
{
"account[parent_account_id]": "123456",
"account[name]": "Account Name (same or new)",
}
To participate in the Instructure Community, you need to sign up or log in:
Sign In