Skip to main content
Version: 5.7.0

SysUpdateEntityOwner

Updates the owner of the specified custom entity.

ServiceOperation
customEntitySYS_UPDATE_ENTITY_OWNER

Method Parameters

ParameterDescription
entityTypeThe type of custom entity being updated.
entityIdThe id of custom entity being updated.
oldOwnerIdThe profileId of the existing owner of the entity.
newOwnerIdThe profileId of the new owner of the entity.
versionVersion of the custom entity being updated.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"entityId": "1497cc7e-66cb-4682-9eac-c755523369a8",
"version": 2,
"acl": {
"other": 1
},
"ownerId": "www-xxx-yyy-zzz2",
"expiresAt": null,
"timeToLive": null,
"createdAt": 1573540122600,
"updatedAt": 1573540142928
}
}