Create a proper REST url with all ids set