Skip to main content
paradime.admin.bolt manages Bolt schedules that are created in the UI or through the API, deploys the YAML schedules of the repository, and manages Trigger URLs. To trigger and follow runs, use paradime.bolt. For the GraphQL operations, see Bolt.
Prerequisites
  • These operations are available on every plan.
  • Your API key needs the Bolt admin capability group. To read a schedule’s environment, the key also needs Environment admin.
  • The admin client of the paradime-io package. See Admin client.
The examples on this page use this client:
Schedules defined in YAML live in the repository: change them there and deploy them with deploy_schedules. create_schedule, update_schedule and delete_schedule refuse a YAML schedule with AdminConflictException, and list_schedules doesn’t list YAML schedules.

Create a schedule

Creates a schedule, as the Bolt UI does, and deploys it. It takes the settings that paradime.bolt.create_schedule takes, plus slug, command_configs, continue_on_error and trigger_on_webhook. Give exactly one of commands or command_configs. With a slug, sending the same input again returns the same schedule. Without one, every call creates another schedule. Leaving out suspended or continue_on_error sets them to False. So, after you pause a schedule, sending the create again raises AdminConflictException unless it says suspended=True.
str
required
The schedule’s display name.
str
required
The cron expression, or OFF for no time-based runs.
str
required
The slug of the Bolt environment that the schedule runs in.
Optional[str]
default:"None"
The slug to give the schedule. Generated when left out. A schedule slug is lowercase letters and digits in groups joined by single hyphens, at most 80 characters. A slug that a YAML schedule uses, or that a deleted schedule used, raises AdminConflictException.
Optional[List[str]]
default:"None"
The commands each run runs, in order, for example ["dbt build"].
Optional[List[BoltCommandConfigInput | dict]]
default:"None"
The commands with per-command settings, for example [BoltCommandConfigInput(command="dbt test", continue_on_error=True)].
Optional[bool]
default:"None"
The schedule-level default for continuing past a failed command.
Optional[bool]
default:"None"
Declares that Trigger URLs start the schedule. False when left out.
optional
The same settings as paradime.bolt.create_schedule.
optional
The nested settings of paradime.bolt.create_schedule, as models from paradime.apis.bolt.types or as dicts.
Optional[str]
default:"None"
The workspace to change, for a company API key.
BoltScheduleDefinition
The new schedule as stored, or the existing one when you sent the same input before.

Update a schedule

Replaces the settings of a schedule created in the UI or through the API, and redeploys it. It takes the same settings as create_schedule, except slug. Every setting is replaced, except that leaving out suspended, continue_on_error or env_vars keeps their values. So send the whole schedule. name is the display name and never changes the slug.
str
required
The slug of the schedule to change.
str
required
The display name, the cron expression or OFF, and the Bolt environment’s slug.
optional
Every other setting of create_schedule.
Optional[str]
default:"None"
The workspace to change, for a company API key.
BoltScheduleDefinition
The schedule, as now stored.

Delete a schedule

Deletes a schedule created in the UI or through the API, and redeploys the schedules. Deleting it again is not an error. Its slug is never given out again. Its Trigger URLs stay, and start nothing.
str
required
The slug of the schedule to delete.
Optional[str]
default:"None"
The workspace to change, for a company API key.
str
The slug of the deleted schedule.

List schedules

Iterates over the workspace’s schedules created in the UI or through the API, as stored, ordered by slug. YAML schedules are not listed.
Optional[str]
default:"None"
The workspace to read, for a company API key.
int
default:"100"
How many schedules to read per request, at most 500.
Iterator[BoltScheduleDefinition]
The schedules, read one page at a time.

Deploy YAML schedules

Starts a job that reads the YAML schedules from the workspace’s deploy branch and deploys them with the UI schedules. A YAML error fails the job with VALIDATION_FAILED.
Optional[str]
default:"None"
The branch you expect the schedules to deploy from. When the workspace deploys from another branch, the API refuses the call before anything starts. Change the deploy branch with workspaces.update.
Optional[str]
default:"None"
The workspace to deploy, for a company API key.
AdminJob
The job. Wait for it with admin.jobs.wait. Its result is a DeployBoltSchedulesResult that holds the first page of the schedules the deploy read. Each schedule has its source and, when it was not deployed, its failure_reason. Read every schedule with admin.jobs.deployed_schedules.

Trigger URLs

A Trigger URL starts a schedule when a tool sends a request to it with its secret. In the app, Trigger URLs are the incoming webhooks of a schedule.

List Trigger URLs

Iterates over a schedule’s Trigger URLs, oldest first. Their secrets are never returned.
str
required
The schedule’s slug.
Optional[str]
default:"None"
The workspace to read, for a company API key.
int
default:"100"
How many Trigger URLs to read per request, at most 500.
Iterator[TriggerUrl]
The Trigger URLs, read one page at a time.

Create a Trigger URL

Creates a Trigger URL for a schedule. Its secret is returned only by this call: store it now.
str
required
The slug of the schedule that the URL starts.
str
required
The URL’s name, 1 to 100 characters, unique among the schedule’s Trigger URLs.
Optional[str]
default:"None"
The workspace to change, for a company API key.
TriggerUrlWithSecret
The Trigger URL (trigger_url) and its secret (secret). Send the secret as Authorization: Bearer <secret>.

Rotate a Trigger URL’s secret

Gives a Trigger URL a new secret. The old secret stops working at once. The new secret is returned only by this call: store it now.
str
required
The Trigger URL’s public id.
Optional[str]
default:"None"
The workspace to change, for a company API key.
TriggerUrlWithSecret
The Trigger URL and its new secret.

Pause or resume a Trigger URL

pause_trigger_url pauses a Trigger URL: a request to it starts no run. resume_trigger_url resumes it: a request starts a run again. Pausing a paused URL, or resuming a running one, changes nothing. A public id that doesn’t exist raises AdminNotFoundException.
str
required
The Trigger URL’s public id.
Optional[str]
default:"None"
The workspace to change, for a company API key.
TriggerUrl
The Trigger URL, now paused or running.

Delete a Trigger URL

Deletes a Trigger URL. Deleting it again is not an error.
str
required
The Trigger URL’s public id.
Optional[str]
default:"None"
The workspace to change, for a company API key.
str
The public id of the deleted Trigger URL.

Types

Import the models from paradime.apis.admin.bolt.types. The nested input models of a schedule, such as BoltNotificationsInput and BoltCommandConfigInput, are in paradime.apis.bolt.types.
model
model
model