Set a path for the api