---
title: "Changes status(ON/OFF) of a scheduler by provided scheduler id"
method: PUT
path: "/scheduler/{schedulerId}/status"
tags: ["Scheduler"]
---

# Changes status(ON/OFF) of a scheduler by provided scheduler id

`PUT /scheduler/{schedulerId}/status`

## Path parameters

- `schedulerId` integer, required

## Request body

- Scheduler
  - `id` integer
  - `title` string
  - `status` boolean
  - `debugMode` boolean
  - `cronExp` string
  - `createdBy` integer
  - `createdOn` string, date-time
  - `modifiedBy` integer
  - `modifiedOn` string, date-time
  - `connection` Connection
    - `id` integer
    - `snapshotId` string
    - `title` string
    - `description` string
    - `fromConnector` integer
    - `toConnector` integer
    - `createdBy` integer
    - `createdOn` string, date-time
    - `modifiedBy` integer
    - `modifiedOn` string, date-time
    - `icon` string
    - `schedulers` Scheduler[]
    - `categoryId` integer
    - `ocVersion` string
    - `revision` integer
  - `webhook` Webhook
    - `id` integer
    - `uuid` string
    - `token` string
    - `createdBy` integer
    - `createdOn` string, date-time
  - `executions` Execution[]
    - `id` integer
    - `reqType` string
    - `startTime` string, date-time
    - `endTime` string, date-time
    - `status` string
    - `executionArguments` ExecutionArgument[]
      - `execution` Execution — recursive
      - `argument` Argument
        - `id` integer
        - `name` string
        - `description` string
        - `dataAggregator` DataAggregator
          - `id` integer
          - `name` string
          - `script` string
          - `active` boolean
          - `args` Argument[]
        - `executionArguments` ExecutionArgument[]
      - `value` string
  - `eventNotifications` EventNotification[]
    - `id` integer
    - `name` string
    - `eventType` string
    - `scheduler` Scheduler — recursive
    - `eventMessage` EventMessage
      - `id` integer
      - `name` string
      - `type` string
      - `eventContents` EventContent[]
        - `id` integer
        - `subject` string
        - `body` string
        - `language` string
    - `eventRecipients` EventRecipient[]
      - `id` integer
      - `destination` string

## Response `200`

Scheduler status has been successfully changed

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/revisions/82ed767ffb65/schema)
