a sudden wish to do or have something, especially when it is something unusual or unnecessary
He was forced to pander to her every whim.
We bought the house on a whim.
My duties seem to change daily at the whim of the boss.
the whims of fashion
She hires and fires people at whim.