Skip to main content
Version: 5.7.0

CreateSystemEntityWithIndexedId

Create a new system entity on the server with an indexed id.

ServiceOperation
globalEntityCREATE_SYSTEM_ENTITY_WITH_INDEXED_ID

Method Parameters

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

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{  
"data":{
"gameId":"12270",
"entityId":"b2a2bbdf-084b-41c8-802a-05de9c37b20c",
"ownerId":null,
"entityType":"address",
"entityIndexedId":"entityId1",
"version":1,
"acl":{
"other":1
},
"expiresAt":9223372036854776000,
"timeToLive":-1,
"createdAt":1550852309251,
"updatedAt":1550852309251
},
"status":200
}