Added API sample for updating user setting

Added API sample for updating user setting