modify a rest action.