> ## 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.

# createBoltScheduleDefinition

> Creates a schedule, as the UI does, and deploys it. Needs `bolt:schedule:create`.



**mutation** `createBoltScheduleDefinition(input: CreateBoltScheduleDefinitionInput!): CreateBoltScheduleDefinitionPayload!`

## Arguments

**`input`**: `CreateBoltScheduleDefinitionInput!` (required)

The schedule to create.

## Returns

`CreateBoltScheduleDefinitionPayload!`

**`schedule`**: `BoltScheduleDefinition!`

The new schedule as stored, or the existing one when the same input was sent before.

## Examples

```graphql Mutation
mutation CreateBoltScheduleDefinition($input: CreateBoltScheduleDefinitionInput!) {
  createBoltScheduleDefinition(input: $input) {
    schedule {
      slug
      name
      schedule
      timezone
      environment {
        slug
        type
        name
        isDefault
        branch
        dbtVersion
      }
      gitBranch
    }
  }
}
```

```json Variables
{
  "input": {
    "schedule": {
      "name": "string",
      "schedule": "string",
      "environment": "string"
    }
  }
}
```

```json Response
{
  "data": {
    "createBoltScheduleDefinition": {
      "schedule": {
        "slug": "string",
        "name": "string",
        "schedule": "string",
        "timezone": "string",
        "environment": {
          "slug": "string",
          "type": "SCHEDULER",
          "name": "string",
          "isDefault": true,
          "branch": "string",
          "dbtVersion": "string"
        },
        "gitBranch": "string"
      }
    }
  }
}
```


## Related topics

- [Administration API: Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Bolt](https://docs.paradime.io/developers/python-sdk/modules/bolt.md)
- [Bolt API](https://docs.paradime.io/developers/graphql-api/api-reference/bolt-api.md)
- [Create a schedule](https://docs.paradime.io/guides/paradime-101/running-dbt-in-production-with-bolt/creating-bolt-schedules.md)


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