Allowing not only strings to be parameter values, adding optional path formatting:

withPath("/api/{%d}/action, objectId) -> "/api/10/action"