Skip to main content
Version: 5.7.0

RunBatchUserScript

Runs a script against the users targetted by the provided segments or all players.

ServiceOperation
scriptRUN_BATCH_USER_SCRIPT

Method Parameters

ParameterDescription
scriptNameThe name of the script with its path to be run.
scriptDataData to be sent to the script in JSON format.
segmentIdListList of target segments. Omit to send to all users.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": {}
}
]
}