SysChangeGroupType
Change the groupType of a given group.
Service | Operation |
---|---|
group | SYS_CHANGE_GROUP_TYPE |
Method Parameters
Parameter | Description |
---|---|
groupId | Id of a group. |
groupType | A group type. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var groupId = "a-group-id";
var groupType = "group-type";
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysChangeGroupType(groupId, groupType);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_CHANGE_GROUP_TYPE",
"data": {
"groupId": "a-group-id",
"groupType": "group-type"
}
}