Skip to main content
Version: 5.7.0

SysCreateEntity

Advanced version of createEntity that allows a specific user to be specified as owner (or none). Also callable from S2S sessions.

ServiceOperation
customEntitySYS_CREATE_ENTITY

Method Parameters

ParameterDescription
entityTypeThe type of custom entity to create.
dataJsonThe entity's custom field data, as JSON.
aclThe entity's Access Control List as an object. A null ACL implies default permissions which make the entity readable by others.
timeToLiveThe duration of time, in milliseconds, the custom entity should live before being expired. Null indicates never expires.
ownerIdProfileId of the user that will own this identity, or null if no owner.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"entityId": "8469e360-0b24-4c87-xxxx-89fd0e3ee436",
"version": 1,
"acl": {
"other": 1
},
"ownerId": null,
"expiresAt": null,
"timeToLive": null,
"createdAt": 1573532801958,
"updatedAt": 1573532801958
}
}