save endpoint with inputs