SysUpdateGroupSummaryData
Update a group's summary data, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_UPDATE_GROUP_SUMMARY_DATA |
Method Parameters
Parameter | Description |
---|---|
groupId | ID of the group |
version | Version to verify |
summaryData | Public summary data for the group that is viewable even by non-members |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var groupId = "a-group-id";
var version = 3;
var summaryData = { "faction": "warlords" };
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysUpdateGroupSummaryData(groupId, version, summaryData);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_UPDATE_GROUP_SUMMARY_DATA",
"data": {
"groupId": "a-group-id",
"version": 3,
"summaryData": {}
}
}
JSON Response
{
"data": {
"gameId": "12345",
"groupId": "b7b590e0-0e27-47ef-8bf5-03a3b4e34475",
"ownerId": "77ce8889-20b7-4d01-b248-e0beb747f1b4",
"name": "myGroupName",
"groupType": "newGroupType",
"createdAt": 1561472696504,
"updatedAt": 1561472926006,
"members": {
"77ce8889-20b7-4d01-b248-e0beb747f1b4": {
"role": "OWNER",
"attributes": {}
}
},
"pendingMembers": {},
"version": 4,
"summaryData": {
"new": "data"
},
"isOpenGroup": true,
"defaultMemberAttributes": {},
"memberCount": 1,
"invitedPendingMemberCount": 0,
"requestingPendingMemberCount": 0,
"acl": {
"member": 2,
"other": 0
}
},
"status": 200
}