> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Administration API: Bolt

> Create, change, and delete Bolt schedules, deploy YAML schedules as a job, and create, rotate, pause, and delete Trigger URLs with the Administration API.

Manage Bolt schedules from code: create, change, and delete the schedules you build in Paradime or through the API, deploy the schedules defined in YAML, and manage the Trigger URLs that start a schedule from a request.

> [!NOTE]
>
> **Prerequisites:**
>
> * These operations are available on every plan.
> * An account API key with the `X-Paradime-Workspace` header, or a workspace API key.
> * The **Bolt admin** capability group. To read a schedule's `environment`, the key also needs **Environment admin**.
>
> Keys, errors, pagination, and jobs work the same in every area. See [Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md).

## Operations

| Operation | Type | What it does | Capability group |
| - | - | - | - |
| [`createBoltScheduleDefinition`](https://docs.paradime.io/graphql-reference/mutations/createBoltScheduleDefinition) | Mutation | Creates a schedule, as the Bolt UI does, and deploys it. | Bolt admin |
| [`updateBoltScheduleDefinition`](https://docs.paradime.io/graphql-reference/mutations/updateBoltScheduleDefinition) | Mutation | Replaces a schedule's settings and redeploys it. Pauses or resumes it with `suspended`. | Bolt admin |
| [`deleteBoltScheduleDefinition`](https://docs.paradime.io/graphql-reference/mutations/deleteBoltScheduleDefinition) | Mutation | Deletes a schedule and redeploys the workspace's schedules. | Bolt admin |
| [`Workspace.boltSchedules`](https://docs.paradime.io/graphql-reference/types/Workspace) | Field | Lists the schedules created in Paradime or through the API, by slug. | Bolt admin |
| [`deployBoltSchedules`](https://docs.paradime.io/graphql-reference/mutations/deployBoltSchedules) | Mutation | Deploys the YAML schedules from the deploy branch, as a job. | Bolt admin |
| [`Workspace.triggerUrls`](https://docs.paradime.io/graphql-reference/types/Workspace) | Field | Lists a schedule's Trigger URLs, without their secrets. | Bolt admin |
| [`createTriggerUrl`](https://docs.paradime.io/graphql-reference/mutations/createTriggerUrl) | Mutation | Creates a Trigger URL for a schedule and returns its secret once. | Bolt admin |
| [`rotateTriggerUrlSecret`](https://docs.paradime.io/graphql-reference/mutations/rotateTriggerUrlSecret) | Mutation | Gives a Trigger URL a new secret and returns it once. | Bolt admin |
| [`pauseTriggerUrl`](https://docs.paradime.io/graphql-reference/mutations/pauseTriggerUrl) | Mutation | Stops a Trigger URL from starting runs. | Bolt admin |
| [`resumeTriggerUrl`](https://docs.paradime.io/graphql-reference/mutations/resumeTriggerUrl) | Mutation | Lets a paused Trigger URL start runs again. | Bolt admin |
| [`deleteTriggerUrl`](https://docs.paradime.io/graphql-reference/mutations/deleteTriggerUrl) | Mutation | Deletes a Trigger URL. | Bolt admin |

> [!NOTE]
>
> Keys with the older **Bolt schedules admin** group can also call `createBoltScheduleDefinition`, `deleteBoltScheduleDefinition`, and `Workspace.boltSchedules`, and keys with **Bolt schedules metadata viewer** can read `Workspace.boltSchedules`. Updates, deploys, and Trigger URLs need **Bolt admin**.

## Create a schedule

`createBoltScheduleDefinition` creates a schedule as the Bolt UI does. Paradime deploys it in the background after the call returns. The `schedule` input is the same `BoltScheduleInput` that the [Bolt API](https://docs.paradime.io/developers/graphql-api/api-reference/bolt-api#create-a-bolt-schedule) takes, so every setting documented there works here: notifications, integrations, self-healing, Turbo CI, deferred schedules, parent-schedule triggers, and environment variables.

Send your own `slug` to make the call safe to retry:

* With a `slug`, sending the same input again returns the same schedule. The same `slug` with other settings is a `CONFLICT`.
* Without a `slug`, Paradime mints one, and every call creates another schedule.
* A slug is lowercase letters and digits in groups joined by single hyphens, at most 80 characters. It never changes. A slug that a YAML schedule holds, or that a deleted schedule held, can't be used.

`environment` is the slug of a Bolt environment, such as `production`. Set exactly one of `commands` and `commandConfigs`. Leaving out `suspended` or `continueOnError` sets them to `false`.

```graphql theme={"system"}
mutation CreateSchedule($input: CreateBoltScheduleDefinitionInput!) {
  createBoltScheduleDefinition(input: $input) {
    schedule {
      slug
      name
      schedule
      commands
      isSuspended
      updatedAt
    }
  }
}
```

```json theme={"system"}
{
  "input": {
    "slug": "nightly-build",
    "schedule": {
      "name": "Nightly build",
      "schedule": "0 2 * * *",
      "environment": "production",
      "commands": ["dbt build"],
      "ownerEmail": "data-team@example.com",
      "description": "Builds the production project every night."
    }
  }
}
```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "createBoltScheduleDefinition": {
>       "schedule": {
>         "slug": "nightly-build",
>         "name": "Nightly build",
>         "schedule": "0 2 * * *",
>         "commands": ["dbt build"],
>         "isSuspended": false,
>         "updatedAt": "2026-11-26T09:12:44+00:00"
>       }
>     }
>   }
> }
> ```

> [!TIP]
>
> For new code, use `createBoltScheduleDefinition` rather than the Bolt API's `createBoltSchedule`. It accepts your slug, is safe to retry, returns the stored schedule, and reports errors with a code. `createBoltSchedule` keeps working.

## List schedules

`Workspace.boltSchedules` lists the schedules created in Paradime or through the API, ordered by slug. It doesn't list YAML schedules. To read every deployed schedule, YAML schedules included, use `listBoltSchedules` from the [Bolt API](https://docs.paradime.io/developers/graphql-api/api-reference/bolt-api#list-bolt-schedules).

```graphql theme={"system"}
query Schedules($first: Int, $after: String) {
  workspace {
    boltSchedules(first: $first, after: $after) {
      totalCount
      pageInfo {
        hasNextPage
        endCursor
      }
      edges {
        node {
          slug
          name
          schedule
          gitBranch
          isSuspended
          triggerOnWebhook
        }
      }
    }
  }
}
```

```json theme={"system"}
{
  "first": 100
}
```

## Change, pause, or delete a schedule

`updateBoltScheduleDefinition` replaces the settings of a schedule created in Paradime or through the API, then redeploys it. Every setting you leave out is cleared, except `suspended`, `continueOnError`, and `envVars`, which keep their values. `name` changes the display name only: the slug never changes. Sending the same input again changes nothing.

To pause a schedule, send its settings with `suspended: true`. To resume it, send them with `suspended: false`.

> [!WARNING]
>
> `BoltScheduleDefinition` returns only some of a schedule's settings. For example, it doesn't return `notifications`. Keep the full definition in your code, and send all of it on every update, or the settings you leave out are removed.

```graphql theme={"system"}
mutation PauseSchedule($input: UpdateBoltScheduleDefinitionInput!) {
  updateBoltScheduleDefinition(input: $input) {
    schedule {
      slug
      isSuspended
      updatedAt
    }
  }
}
```

```json theme={"system"}
{
  "input": {
    "slug": "nightly-build",
    "schedule": {
      "name": "Nightly build",
      "schedule": "0 2 * * *",
      "environment": "production",
      "commands": ["dbt build"],
      "ownerEmail": "data-team@example.com",
      "description": "Builds the production project every night.",
      "suspended": true
    }
  }
}
```

`deleteBoltScheduleDefinition` deletes the schedule and redeploys the workspace's schedules. Deleting it again is not an error. The slug is never given out again. The schedule's Trigger URLs stay, but start nothing: delete them with `deleteTriggerUrl`.

```graphql theme={"system"}
mutation DeleteSchedule($input: DeleteBoltScheduleDefinitionInput!) {
  deleteBoltScheduleDefinition(input: $input) {
    deletedSlug
  }
}
```

```json theme={"system"}
{
  "input": {
    "slug": "nightly-build"
  }
}
```

Both mutations refuse a schedule defined in YAML with `CONFLICT`. Change or remove it in the repository, then [deploy the YAML schedules](#deploy-schedules-from-yaml). The Bolt API's `suspendBoltSchedule` and `deleteBoltSchedule` keep working for keys with the **Bolt schedules admin** group.

## Deploy schedules from YAML

`deployBoltSchedules` reads the YAML schedules (`paradime_schedules.yml` or the `.bolt/` folder) from the workspace's deploy branch, and deploys them together with the schedules created in Paradime or through the API. The deploy runs as a job: the mutation returns a job at once, and you poll [`adminJob`](https://docs.paradime.io/graphql-reference/queries/adminJob) until its `status` is `SUCCEEDED` or `FAILED`. Only the key that started the job can read it. See [Async jobs](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#async-jobs).

Send `branch` to check which branch the deploy reads. If the workspace deploys from another branch, the call fails with `VALIDATION_FAILED` before anything starts. To change the deploy branch, set `scheduleDeploymentBranch` with [`updateWorkspace`](https://docs.paradime.io/developers/graphql-api/admin-api/workspaces).

```graphql theme={"system"}
mutation DeploySchedules($input: DeployBoltSchedulesInput!) {
  deployBoltSchedules(input: $input) {
    job {
      id
      kind
      status
      createdAt
    }
  }
}
```

```json theme={"system"}
{
  "input": {
    "branch": "main"
  }
}
```

Poll the job with its `id`:

```graphql theme={"system"}
query DeployJob($jobId: String!) {
  adminJob(jobId: $jobId) {
    id
    status
    failure {
      code
      reason
    }
    result {
      ... on DeployBoltSchedulesResult {
        gitHash
        schedules(first: 100) {
          totalCount
          edges {
            node {
              slug
              source
              failureReason
            }
          }
        }
      }
    }
  }
}
```

```json theme={"system"}
{
  "jobId": "9f2c4e71b8d34a0e"
}
```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "adminJob": {
>       "id": "9f2c4e71b8d34a0e",
>       "status": "SUCCEEDED",
>       "failure": null,
>       "result": {
>         "gitHash": "4be1c0d",
>         "schedules": {
>           "totalCount": 2,
>           "edges": [
>             { "node": { "slug": "hourly-sources", "source": "YAML", "failureReason": null } },
>             { "node": { "slug": "nightly-build", "source": "UI", "failureReason": null } }
>           ]
>         }
>       }
>     }
>   }
> }
> ```

When the job succeeds, `result.schedules` lists every schedule the deploy read, YAML and UI. A schedule that couldn't be deployed doesn't fail the job: it has a `failureReason`, for example when no data warehouse connection is set up for its environment. The job fails:

* With `VALIDATION_FAILED` when the YAML has an error. `failure.reason` gives the error.
* With `INTERNAL` when the deploy doesn't finish within 15 minutes, or fails for an unexpected reason.

> [!WARNING]
>
> If the deploy branch no longer exists, the job fails, and Bolt stops the YAML schedules until a later deploy succeeds. Schedules created in Paradime or through the API keep running.

## Start a schedule with a Trigger URL

A Trigger URL starts a schedule when it receives a `POST` request that carries its secret. In Paradime, it is an [incoming webhook](https://docs.paradime.io/products/bolt/external-triggers/incoming-webhooks.md), listed in the schedule's **Trigger URLs** card.

1. Make the schedule run on request: set `triggerOnWebhook: true`, and `schedule: "OFF"` for no time-based runs. For a YAML schedule, set `trigger_on_webhook: true` in the file and deploy it.
2. Create the Trigger URL with `createTriggerUrl`. The schedule can be one created in Paradime or through the API, or a deployed YAML schedule. The name is 1 to 100 characters, and unique among the schedule's Trigger URLs.
3. Store the `secret`. It is shown only in this response.

```graphql theme={"system"}
mutation CreateTriggerUrl($input: CreateTriggerUrlInput!) {
  createTriggerUrl(input: $input) {
    triggerUrl {
      publicId
      name
      url
      isEnabled
    }
    secret
  }
}
```

```json theme={"system"}
{
  "input": {
    "scheduleSlug": "jira-ticket-agent",
    "name": "Jira Automation"
  }
}
```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "createTriggerUrl": {
>       "triggerUrl": {
>         "publicId": "whk_3n8x4q2v7d1m",
>         "name": "Jira Automation",
>         "url": "https://api.paradime.io/api/v1/<company_token>/webhook/in/whk_3n8x4q2v7d1m",
>         "isEnabled": true
>       },
>       "secret": "prdm_whk_<shown once>"
>     }
>   }
> }
> ```

Send requests to `url` with the secret in the `Authorization` header:

```bash theme={"system"}
curl -X POST "<url>" \
  -H "Authorization: Bearer <secret>"
```

See [Incoming webhooks](https://docs.paradime.io/products/bolt/external-triggers/incoming-webhooks.md) for the request body, filters, and the responses Paradime sends.

A second `createTriggerUrl` with a name the schedule already uses is a `CONFLICT`, because the first secret can't be shown again. To get a new secret, rotate it.

## Rotate, pause, resume, or delete a Trigger URL

These mutations take the Trigger URL's `publicId`, the last part of its URL. Each change applies at once, without a deploy.

* `rotateTriggerUrlSecret` returns a new secret, once. The old secret stops working at once.
* `pauseTriggerUrl` stops the URL from starting runs, and `resumeTriggerUrl` lets it start them again. Pausing a paused URL, or resuming a running one, changes nothing.
* `deleteTriggerUrl` deletes the URL. Deleting it again is not an error.

```graphql theme={"system"}
mutation RotateSecret($input: RotateTriggerUrlSecretInput!) {
  rotateTriggerUrlSecret(input: $input) {
    triggerUrl {
      publicId
      secretUpdatedAt
    }
    secret
  }
}
```

```json theme={"system"}
{
  "input": {
    "publicId": "whk_3n8x4q2v7d1m"
  }
}
```

```graphql theme={"system"}
mutation PauseTriggerUrl($input: PauseTriggerUrlInput!) {
  pauseTriggerUrl(input: $input) {
    triggerUrl {
      publicId
      isEnabled
    }
  }
}
```

```json theme={"system"}
{
  "input": {
    "publicId": "whk_3n8x4q2v7d1m"
  }
}
```

To check a schedule's Trigger URLs, read `Workspace.triggerUrls` with the schedule's slug. It never returns a secret: `secretUpdatedAt` says when the secret last changed, and `lastEventAt` when the URL last received a request.

```graphql theme={"system"}
query ScheduleTriggerUrls($scheduleSlug: String!) {
  workspace {
    triggerUrls(scheduleSlug: $scheduleSlug) {
      totalCount
      edges {
        node {
          publicId
          name
          isEnabled
          createdAt
          lastEventAt
          secretUpdatedAt
        }
      }
    }
  }
}
```

```json theme={"system"}
{
  "scheduleSlug": "jira-ticket-agent"
}
```

## Errors

These are the cases specific to Bolt. For the error format and the codes every area shares, see [Errors](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#errors).

| Code | When |
| - | - |
| `CONFLICT` | The slug belongs to a YAML schedule, was used by a deleted schedule, or belongs to a schedule with other settings. Or the schedule already has a Trigger URL with that name. |
| `NOT_FOUND` | No schedule in the workspace has the slug, or no Trigger URL has the `publicId`. |
| `VALIDATION_FAILED` | The slug is not valid. The input sets both or neither of `commands` and `commandConfigs`. The schedule is not valid, for example its `environment` is not a Bolt environment. The Trigger URL name is empty or longer than 100 characters. `branch` is not the deploy branch. |

A deploy job that fails reports `VALIDATION_FAILED` or `INTERNAL` in `failure.code`, as described in [Deploy schedules from YAML](#deploy-schedules-from-yaml).

## Related

* [Python SDK: Bolt](https://docs.paradime.io/developers/python-sdk/modules/admin/bolt.md): the same operations in `paradime.admin.bolt`.
* [Paradime CLI: `paradime admin`](https://docs.paradime.io/developers/paradime-cli/admin-cli): `paradime admin bolt schedules` creates, changes, lists, and deletes schedules.
* [Bolt API](https://docs.paradime.io/developers/graphql-api/api-reference/bolt-api): trigger runs, read run status and logs, and the older schedule operations.
* [Deploy schedules](https://docs.paradime.io/products/bolt/creating-schedules/deploy.md) and [Schedules as code](https://docs.paradime.io/products/bolt/creating-schedules/schedules-as-code/index): the same schedules in Paradime and in YAML.
* [Incoming webhooks](https://docs.paradime.io/products/bolt/external-triggers/incoming-webhooks.md): Trigger URLs in Paradime, and how to call them.
* [Administration API: Environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments): the Bolt environments a schedule runs in.


## Related topics

- [Administration API](https://docs.paradime.io/developers/graphql-api/admin-api/index.md)
- [Administration API: API keys](https://docs.paradime.io/developers/graphql-api/admin-api/api-keys.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Administration API: Notifications](https://docs.paradime.io/developers/graphql-api/admin-api/notifications.md)
- [Administration API: Environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.