Skip to main content
Version: 5.7.0

CreateSystemEntity

Method creates a new system entity on the server.

ServiceOperation
globalEntityCREATE_SYSTEM_ENTITY

Method Parameters

ParameterDescription
entityTypeThe entity type as defined by the user
timeToLiveSets expiry time for entity in milliseconds if > 0
jsonEntityAclThe entity's Access Control List as object. A null ACL implies default permissions which make the entity readable/writeable by only the user.
jsonEntityDataThe entity's data object

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"response": {
"data": {
"gameId": "22232",
"entityIndexedId": null,
"timeToLive": -1,
"createdAt": 1499276273151,
"entityType": "address",
"entityId": "5ae3644f-5306-4b24-8134-29b0c1fdf713",
"acl": {
"other": 2
},
"ownerId": null,
"version": 1,
"expiresAt": 9223372036854776000,
"updatedAt": 1499276273151
},
"status": 200
},
"success": true
},
"status": 200
}