Receiving error 500 when trying to update team via API

Receiving error 500 "The server encountered an error processing the request" when updating a team via API. Ensure the Request Body language matches the template used (select XML or JSON accordingly) before running the PUT /teams/{teamid} call.