curl --request PUT \
--url https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume \
--header 'X-Asteroid-Agents-Api-Key: <api-key>'import requests
url = "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume"
headers = {"X-Asteroid-Agents-Api-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-Asteroid-Agents-Api-Key': '<api-key>'}};
fetch('https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"X-Asteroid-Agents-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("X-Asteroid-Agents-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume")
.header("X-Asteroid-Agents-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Asteroid-Agents-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"awaitingCapacityCount": 123,
"cancelledCount": 123,
"concurrencyGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {
"batchInterval": 123,
"batchSize": 123,
"type": "timeBatching"
},
"createdAt": "2023-11-07T05:31:56Z",
"failedCount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"pendingCount": 123,
"startAt": "2023-11-07T05:31:56Z",
"totalCount": 123,
"triggeredCount": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}{
"code": 400,
"message": "<string>"
}{
"code": 401,
"message": "<string>"
}{
"code": 403,
"message": "<string>"
}{
"code": 404,
"message": "<string>"
}{
"code": 500,
"message": "<string>"
}Resume execution batch
Resume a paused batch. ExecuteAt times will be recalculated from now.
curl --request PUT \
--url https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume \
--header 'X-Asteroid-Agents-Api-Key: <api-key>'import requests
url = "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume"
headers = {"X-Asteroid-Agents-Api-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-Asteroid-Agents-Api-Key': '<api-key>'}};
fetch('https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"X-Asteroid-Agents-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("X-Asteroid-Agents-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume")
.header("X-Asteroid-Agents-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://odyssey.asteroid.ai/agents/v2/execution-batches/{batchId}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Asteroid-Agents-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"awaitingCapacityCount": 123,
"cancelledCount": 123,
"concurrencyGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {
"batchInterval": 123,
"batchSize": 123,
"type": "timeBatching"
},
"createdAt": "2023-11-07T05:31:56Z",
"failedCount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"pendingCount": 123,
"startAt": "2023-11-07T05:31:56Z",
"totalCount": 123,
"triggeredCount": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}{
"code": 400,
"message": "<string>"
}{
"code": 401,
"message": "<string>"
}{
"code": 403,
"message": "<string>"
}{
"code": 404,
"message": "<string>"
}{
"code": 500,
"message": "<string>"
}Authorizations
Path Parameters
The unique identifier of the execution batch
Response
The request has succeeded.
Execution batch with status counts
Agent ID this batch belongs to
Number of items awaiting capacity
Number of cancelled items
Batches sharing a group share one concurrency budget rather than each getting its own. Equals the batch's own id for a one-off batch; a recurring batch carries the id of the schedule that produced it.
Batch configuration
- Option 1
- Option 2
Show child attributes
Show child attributes
Creation timestamp
Number of items that could not be triggered and will not be retried
Unique identifier for the batch
Human-readable name for the batch
Number of pending items
When to start triggering executions
Current batch status
pending, running, paused, completed, cancelled Total number of items
Number of triggered items
Last update timestamp

