Schedule autonomous runs
Getting started with Scheduled Runs
Specifying a cadence
import requests
import json
def send_request(toolhouse_api_key, cadence):
params = { "cron": cadence }
url = "https://api.toolhouse.ai/v1/schedules/text-to-cron"
headers = {
"Authorization": f"Bearer {toolhouse_api_key}",
}
response = requests.get(url, params=params, headers=headers, json=payload)
return response
# Example usage
if __name__ == "__main__":
toolhouse_api_key = "YOUR_TOOLHOUSE_API_KEY"
cadence = "sundays at 5pm UTC"
response = send_request(toolhouse_api_key, cadence)
# Check if the request was successful
if response.status_code == 200:
print("Request successful. Response:")
print(response.json())
else:
print("Request failed with status code", response.status_code)Creating a Scheduled Run
Changing the cadence of a Scheduled Run
Pausing or resuming a Scheduled Run
Deleting a Scheduled Run
Last updated
