Skip to main content
Version: 5.7.0

CancelScheduledScript

Cancels a scheduled script

ServiceOperation
scriptCANCEL_SCHEDULED_SCRIPT

Method Parameters

ParameterDescription
jobIdIdentifies script job to cancel

Usage

http://localhost:3000
string jobId = "idsfihihfuvhvuh";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.ScriptService.CancelScheduledScript(jobId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"result": {},
"jobType": "CloudCode",
"scriptName": "testScript",
"jobId": "3d3d4a7d-ad72-4bf1-9219-184f465e5c33",
"gameId": "20001",
"updatedAt": 1466579169118,
"runState": "Cancelled",
"description": null,
"createdAt": 1466579169118,
"runEndTime": 0,
"localTime": null,
"parameters": {
"testParm1": 1
},
"scheduledStartTime": 1466582769118,
"runStartTime": 0
}
}