cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>'const options = {method: 'POST', headers: {apikey: '<api-key>', secretkey: '<api-key>'}};
fetch('https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop"
headers = {
"apikey": "<api-key>",
"secretkey": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
request.AddHeader("secretkey", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("secretkey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>",
"secretkey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.asString();{
"batchId": "<string>",
"status": "<string>",
"message": "<string>"
}Stop Batch Execution
Stop ongoing batch operations when needed.
POST
/
api
/
v4.0
/
integrations
/
batches
/
{batchId}
/
stop
cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>'const options = {method: 'POST', headers: {apikey: '<api-key>', secretkey: '<api-key>'}};
fetch('https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop"
headers = {
"apikey": "<api-key>",
"secretkey": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
request.AddHeader("secretkey", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("secretkey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>",
"secretkey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gameball.co/api/v4.0/integrations/batches/{batchId}/stop")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.asString();{
"batchId": "<string>",
"status": "<string>",
"message": "<string>"
}Stop Batch Execution
Stop ongoing batch operations when needed. This endpoint allows you to cancel running batch jobs to manage system resources or handle error conditions.Was this page helpful?
⌘I