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

# updateBoltScheduleDefinition

> Changes a schedule created in the UI or through the API, and redeploys it; `suspended` pauses or resumes it. A YAML schedule is a `CONFLICT`: change it in the repository. Needs `bolt:schedule:update`.



**mutation** `updateBoltScheduleDefinition(input: UpdateBoltScheduleDefinitionInput!): UpdateBoltScheduleDefinitionPayload!`

## Arguments

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

The schedule to change.

## Returns

`UpdateBoltScheduleDefinitionPayload!`

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

The schedule, as now stored.

## Examples

```graphql Mutation
mutation UpdateBoltScheduleDefinition($input: UpdateBoltScheduleDefinitionInput!) {
  updateBoltScheduleDefinition(input: $input) {
    schedule {
      slug
      name
      schedule
      timezone
      environment {
        slug
        type
        name
        isDefault
        branch
        dbtVersion
      }
      gitBranch
    }
  }
}
```

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

```json Response
{
  "data": {
    "updateBoltScheduleDefinition": {
      "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)
- [Admin CLI](https://docs.paradime.io/developers/paradime-cli/admin-cli.md)
- [Schedules as Code](https://docs.paradime.io/products/bolt/creating-schedules/schedules-as-code/index.md)
- [The .bolt/ Folder](https://docs.paradime.io/products/bolt/creating-schedules/schedules-as-code/modular-schedules-with-the-.bolt-folder.md)
- [Editing YAML in the UI](https://docs.paradime.io/products/bolt/creating-schedules/schedules-as-code/editing-yaml-schedules-from-the-paradime-ui.md)


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