我正在尝试通过PUT将用户更新为/ auth
通过文档:
Account updates. This route will update an existing user's account settings. The default accepted params are password and password_confirmation, but this can be customized using the devise_parameter_sanitizer system. If config.check_current_password_before_update is set to :attributes the current_password param is checked before any update, if it is set to :password the current_password param is checked only if the request updates user password.
它显然需要的不仅仅是密码和密码_params作为标识符,但email
,id
或uid
都不起作用。还尝试使用root用户提交,即:
{
"user": {
"email": ""
}
}
但这也行不通。
我无法弄清楚这是什么期待。不确定我是否遗漏了一些明显的东西。谁能给我一个这个期待的json格式的例子呢?