I have been reviewing the API documentation and can not seem to find how I can edit user information other than email and avatar. For example firstname, lastname, and more importantly custom fields.
Can someone please help.
Thank you.
I have been reviewing the API documentation and can not seem to find how I can edit user information other than email and avatar. For example firstname, lastname, and more importantly custom fields.
Can someone please help.
Thank you.
You can learn the API request for that using How to reverse engineer the Discourse API
This is at least twice in as many days that this has been the answer to a question. That link really needs to be at the top of the docs.
I agree, if there is a docs document it is kind of assumed it is complete and if not it would be good to mention it.
このトピックについて、@hjalali さん、何か詳細な解決策はありますか?
このトピックは役に立ちますか?
docs.discourse.org にメッセージが表示されています。
注意: リストにないエンドポイントについては、Discourse API のリバースエンジニアリング ガイドに従って、API エンドポイントの使用方法を把握してください。
しかし、より完全にするために、時々更新するようにします。
@philipp96 さん、Reverse engineer the Discourse API を確認しましたか?そのようなアクションがどのように行われるかを理解するのは非常に簡単です。一度やり方を学べば、文字通り数秒の問題です。 ![]()
カスタムフィールドの質問については、次のとおりです。
ブラウザの開発者ツールのネットワークタブを開きます。
ユーザープロフィールのフィールドを更新します。
ネットワークタブの「名前」セクションで [your username].json を探します(「json」という文字列でフィルタリングすることもできます)。
右側の「ペイロード」タブをクリックします。
リクエストの本文で送信されたすべてのデータがここに記述されています。
他のリクエストでも同じプロセスです。
4件の投稿が新しいトピックに分割されました: プロフィール入力中に利用可能なユーザーフィールドの値を動的に更新する