api.example.com、console.example.com、files.example.com は説明用のアドレスです。実際の環境で指定された API、管理画面、ファイル配布先の URL に置き換えてください。
事前操作
- 認証インターフェースを使用してaccessTokenを取得します。
リクエスト
リクエストヘッダー
リクエストパラメータ
レスポンス
レスポンスデータ構造
使用例
パスワードの変更に成功
curl --location --request POST 'https://test-api.example.com/oapi/useracl/v1/rest/pwd' \
--header 'Authorization: Bearer 2ab12245-769b-4f53-99ce-8bab9329efed' \
--header 'Content-Type: application/json' \
--data-raw '{
"loginAccount":"七六@fckj",
"oldPwd":"123456",
"pwd":"1234567"
}'
戻り値
{"data":true,"code":200,"success":true}
パスワードの変更に失敗
curl --location --request POST 'https://test-api.example.com/oapi/useracl/v1/rest/pwd' \
--header 'Authorization: Bearer 2ab12245-769b-4f53-99ce-8bab9329efed' \
--header 'Content-Type: application/json' \
--data-raw '{
"loginAccount":"七六@fckj",
"oldPwd":"123456",
"pwd":"1234567"
}'
戻り値
{"code":500,"success":false,"msg":"新密码不能与当前密码相同,请输入一个不同的新密码"}