Add API endpoint to change path permission

Ticket:	#5472