SysUpdateGroupEntityData
Update the data for a group entity, bypassing ownership/ACL checks. Optional parameters: data (will clear data if not provided)
This method is affected by versioning. See the versioning documentation for more information.
Service | Operation |
---|---|
group | SYS_UPDATE_GROUP_ENTITY_DATA |
Method Parameters
Parameter | Description |
---|---|
groupId | ID of the group |
entityId | The id of the entity to update |
version | Version to verify |
jsonData | Data to apply |
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 entityId = "a-group-entity-id";
var version = 3;
var jsonData = {};
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysUpdateGroupEntityData(groupId, entityId, version, jsonData);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_UPDATE_GROUP_ENTITY_DATA",
"data": {
"groupId": "a-group-id",
"entityId": "a-group-entity-id",
"version": 3,
"data": {}
}
}
JSON Response
{
"status": 200,
"data": null
}