Skip to main content
Version: 5.7.0

SysUpdateEntityFieldsSharded

For sharded custom collection entities. Sets the specified fields within custom entity data on the server, bypassing ACL permissions checks.

ServiceOperation
customEntitySYS_UPDATE_ENTITY_FIELDS_SHARDED

Method Parameters

ParameterDescription
entityTypeThe type of custom entity being updated.
entityIdThe id of custom entity being updated.
versionVersion of the custom entity being updated.
fieldsJsonSpecific fields, as JSON, to set within entity's custom data.
shardKeyJsonThe shard key field(s) and value(s), as JSON, applicable to the entity being updated.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"timeToLive": null,
"createdAt": 1643144091464,
"entityType": "athletes",
"entityId": "bc7ea530-c6bd-4a27-bb5d-ced287991c87",
"acl": {
"other": 2
},
"ownerId": "b85f195e-b65f-4220-b84f-260e42b01c5b",
"version": 3,
"expiresAt": null,
"updatedAt": 1643213631138
},
"status": 200
}