Add max param to response of task list API.