Updating Teams on an Account through API

I have been trying to update the Team an Account is assigned to through the API but it doesn't seem to update. Has anyone tried to do this?