グループ名の変更
グループオーナーは既存のグループ名を変更できます。グループ名を変更するには changeGroupName()
メソッドを使用します。
以下、グループ名を "myNewGroupname" に変更する例を挙げます。
-
var newGroupName = "myNewGroupName"; // Change the group name. group.changeGroupName(newGroupName).then( function(theGroup) { // Do something. }, ).catch( function(error) { var theGroup = error.target; var errorString = error.message; // Handle the error. } );
-
var newGroupName = "myNewGroupName"; // Change the group name. group.changeGroupName(newGroupName, { success: function(theGroup) { // Do something. }, failure: function(theGroup, errorString) { // Handle the error. } });
グループ名は 190 文字までで、使用できる文字などの制限は特にありません。既存のグループ名との重複も可能です。
グループ名を変更しても ID や URI は変わりません。