# pauseWorkflowSchedule

Audience: Developer

Pauses a schedule so it starts no new workflow runs until it is unpaused.

Pauses a schedule so it starts no new workflow runs until it is unpaused.
Running workflows are not affected. Requires the WRITER role on the tenant.

The schedule's note records who last paused it and the caller's `note`;
every pause or unpause replaces it. The Temporal UI shows the same note.

The mutation can fail after Temporal applied the pause, when the schedule
cannot be read back; the error then says so. Pausing a paused schedule
succeeds, so repeating the call is safe.

**Served by:** [workflow](https://docs.pyck.cloud/api/services/workflow.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [PauseWorkflowScheduleInput](https://docs.pyck.cloud/api/inputs/pauseworkflowscheduleinput.md)! |

## Returns

[WorkflowSchedule](https://docs.pyck.cloud/api/types/workflowschedule.md)!

## Example

```graphql
mutation PauseWorkflowSchedule($input: PauseWorkflowScheduleInput!) {
  pauseWorkflowSchedule(input: $input) {
    id
    nextActionTimes
    note
    paused
    recentActions {
      actualTime
      runID
      scheduleTime
      workflowID
    }
    spec {
      calendars {
        comment
        dayOfMonth {
          end
          start
          step
        }
        dayOfWeek {
          end
          start
          step
        }
        hour {
          end
          start
          step
        }
        minute {
          end
          start
          step
        }
        month {
          end
          start
          step
        }
        second {
          end
          start
          step
        }
        year {
          end
          start
          step
        }
      }
      endAt
      intervals {
        offsetSeconds
        periodSeconds
      }
      jitterSeconds
      skip {
        comment
        dayOfMonth {
          end
          start
          step
        }
        dayOfWeek {
          end
          start
          step
        }
        hour {
          end
          start
          step
        }
        minute {
          end
          start
          step
        }
        month {
          end
          start
          step
        }
        second {
          end
          start
          step
        }
        year {
          end
          start
          step
        }
      }
      startAt
      timeZoneName
    }
    workflowType
  }
}
```
