Hey,
You can sell options intraday or overnight.
The exchanges require that 50% of the margin for F&O positions must be in cash or cash equivalent collateral, while the remaining 50% can be in non-cash collateral margin.
Option buying isn’t allowed
For more information on margin utilisation please refer to this trading qna post.