'Update a Team
Update various attributes and configurable settings for the given
team.
:pparam string organization_slug: the slug of the organization the
team belongs to.
:pparam string team_slug: the slug of the team to get.
:param string name: the new name for the team.
:param string slug: a new slug for the team.  It has to be unique
and available.
:auth: required'

@attach_scenarios([update_team_scenario])
def put(self, request, team):

    serializer = TeamSerializer(team, data=request.DATA, partial=True)
    if serializer.is_valid():
        team = serializer.save()
        self.create_audit_entry(request=request, organization=team.organization, target_object=team.id, event=AuditLogEntryEvent.TEAM_EDIT, data=team.get_audit_log_data())
        return Response(serialize(team, request.user))
    return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
