CancelUserScriptBatch
Cancels a running user script batch.
Service | Operation |
---|---|
script | CANCEL_USER_SCRIPT_BATCH |
Method Parameters
Parameter | Description |
---|---|
jobId | The id of the job to cancel. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var jobId = "idsfihihfuvhvuh";
var scriptProxy = bridge.getScriptServiceProxy();
var postResult = scriptProxy.CancelUserScriptBatch(jobId);
{
"service":"script",
"operation":"CANCEL_USER_SCRIPT_BATCH",
"data":{
"jobId":"idsfihihfuvhvuh"
}
}
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
}
}