Foundations vs Endowments

Do they both have the 5% spending requirement to maintain tax exempt status, or is it only Foundations? I saw both are governed by UMIFA so it got me thinking

Thanks!