I'm hooking into the wordpress registration to create a user account in Canvas at the same time. In the POST URL I am specifying the ID of the sub-account, but the user gets created into the main account instead. Also, the confirmation email that gets sent to the user contains the instructure link to the main account when it needs to be the sub-account link as they are completely different.
wp_remote_post( 'https://mydomain.instructure.com/api/v1/accounts/3/users?access_token=mytoken', $args );
3 is the ID of the sub-account. 1 is the ID of the main account. Why is this happening?
An add-on question to the above: Is there any way to customize the register / confirmation emails that get sent to the user? They are very plain and I would like to add some content of my own and be able to brand it as well.