updates max depth for API indexes