You put someone up when you give them a place to sleep in your home. It is temporary accommodation. It is usually never for more than a few days.
When I missed the last train home, Sandra kindly offered to put me up for the night.
Getting the grade you need