Do I need planning permission to build a roof terrace over a flat roof in the UK?
You will need to seek planning permission for roof terrace.  The main reason is that it can overlook the neighbours on either side.  If you had solid walls on either side and you wanted to go straight back that is likely to be ok.

Still as always best to check with you local authority to confirm.