Skip to main content
Version: 5.7.0

SysCreateCollection

Creates configuration for new custom entity collection.

ServiceOperation
customEntitySYS_CREATE_COLLECTION

Method Parameters

ParameterDescription
entityTypeThe type of custom entity collection to be created.
collectionOptsJsonThe collection options, as JSON object.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"collection": {
"options": {
"isOwned": false,
"migrate": true,
"identifier": "playerName",
"dataTemplateJson": {
"playerName": "Randy Traywick",
"playerId": 123456,
"teamName": "Super Stars",
"jerseyNum": 44
},
"dataTemplateText": "**Important** notes go here..."
},
"name": "athletes",
"customIndexes": {}
}
},
"status": 200
}