Skip to main content
Version: 6.0.0

ScheduleBatchUserScript

Schedules a script to run on the server at a later date.

ServiceOperation
scriptSCHEDULE_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.
startDateUTCIf scheduling at a set time. The start date in UTC in Unix millis timestamp format.
minutesFromNowIf scheduling in minutes from the current time. Number of minutes from now to run the script.

Usage​

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.