Pause a Schedule
Pause a schedule so it stops executing. The schedule and its history are preserved — resume it later with POST /api/v1/schedules/{id}/resume.
POST /api/v1/schedules/{id}/pause
Path Parameters
| id | Required — the schedule UUID. |
Request Example
curl -X POST "https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/pause" \
-H "X-ROLLI-TOKEN: your_token" \
-H "X-ROLLI-USER-ID: your_user_id" \
-H "Content-Type: application/json"
fetch("https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/pause", {
method: "POST",
headers: {
"X-ROLLI-TOKEN": "your_token",
"X-ROLLI-USER-ID": "your_user_id",
"Content-Type": "application/json"
},
})
.then(res => res.json())
.then(console.log);
require "net/http"
require "uri"
require "json"
uri = URI("https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/pause")
req = Net::HTTP::Post.new(uri)
req["X-ROLLI-TOKEN"] = "your_token"
req["X-ROLLI-USER-ID"] = "your_user_id"
req["Content-Type"] = "application/json"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(req)
end
puts res.body
import requests
import json
url = "https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/pause"
headers = {
"X-ROLLI-TOKEN": "your_token",
"X-ROLLI-USER-ID": "your_user_id",
"Content-Type": "application/json"
}response = requests.post(url, headers=headers)
print(response.json())
Response Example
{
"id": "660e8400-e29b-41d4-a716-446655440111",
"paused": true,
"paused_at": "2026-05-19T10:30:00Z",
"next_run_at": null,
"...": "all other fields"
}