Most tenancy agreements are for a minimum of 6 months but I don't think there is a legal minimum. You do need a contract in order to protect yourself and to be able to evict them. I think you might not be able to evict before 6 months though no matter how long the contract.
You do need to get proper advice on this from a letting agent.
There are various laws out there regarding letting, tax law, business rates, planning etc.
Contact your local estate agent for advice, they may know somebody who needs a short term let, often there are people who are between houses when buying etc. They might be happy to rent a furnished property.
Look up the landlord laws to see what you need to provide, such as EPC, smoke alarms, CO2 alarms where applicable. You need to protect any deposit taken within a certain amount of time. You would need Landlords insurance to cover the property and the contents. Your mortgage company would have to be advised. You would also need to pack away all your personal belongings, documents and valuables and store them somewhere.
Your furniture and equipment could get damaged. You could need to complete a tax return to declare the income.
You could airbnb it, but check out their rules and see if there are any time restrictions on the area where you live.
so there is a huge amount to consider.