DataAPI SDK japanese MT.DataAPI Endpoint method updateUser - movabletype/mt-data-api-sdk-js GitHub Wiki
ユーザー情報を更新します
PUT https://your-host/your-mt-api.cgi/v1/users/:user_id 詳細
| パラメータ名 | タイプ | 必須 | 説明 |
|---|---|---|---|
| userId | Number | Object | Function | * | ユーザーID |
| userData | Object | HTMLFormElement | * | 更新するユーザーデータ |
| callback | Function |
XMLHttpRequest: XMLHttpRequestオブジェクト
api.updateUser(userId, userData, function(response) {
if (response.error) {
// エラー処理
return;
}
// レスポンスデータを使った処理
});