Set View permissions through scripting

Is there any way to configure view permissions through scripting?


I tried this below method but no optn to pass window path to it ...

#					system.perspective.isAuthorized(True, 'Authenticated/Roles/Administrator')