---
title: "PUT /devops/services/{extension_id}/environments/{environment_id}/schedules/{id}"
method: PUT
path: "/devops/services/{extension_id}/environments/{environment_id}/schedules/{id}"
tags: ["DevOps"]
---

# PUT /devops/services/{extension_id}/environments/{environment_id}/schedules/{id}

`PUT /devops/services/{extension_id}/environments/{environment_id}/schedules/{id}`

Updates a Schedule object given its `id`, `extension_id`
and `environment_id`.

## Path parameters

- `extension_id` string, required
- `environment_id` string, required
- `id` string, required

## Request body

- EaasSchedule — Schedule. Is used to create a concrete Schedule of the Environment. `method` -- method that is going to be used. It must be inside the Environment.schedulables attribute. `name` -- a representative name of the schedule. `description` -- the description of what is going to do this schedule. `parameter` -- method parameters in a dict format. `trigger` -- the schedule type specific data. It contains a dict that will have the required data. `events` -- the schedule date events for created, update, deleted and last_triggered. `environment` -- the related environment id and type.
  - `id` string
  - `name` string, required
  - `description` string, nullable
  - `method` string, required
  - `parameter` object, nullable
  - `trigger` EaasTrigger, required — Schedule trigger type. Is used to specify a concrete Schedule type. `type` -- the schedule type: onetime, recurring or advanced. `start` -- the start date for the schedule. `end` -- the end date for the schedule (optional). `unit` -- recurring type: hour, day, week or month (for recurring type only). `amount` -- recurring amount (for recurring type only). `cron_expression` -- cron expression (for advanced type only). `date` -- one time date (for onetime type only).
    - `type` 'onetime' | 'recurring' | 'advanced', required
    - `start` string, date-time, nullable
    - `end` string, date-time, nullable
    - `unit` 'hours' | 'days' | 'weeks' | 'months', nullable
    - `amount` integer, nullable
    - `cron_expression` string, nullable
    - `date` string, date-time
  - `environment` EaasEnvironmentReference — Environment. Is used to specify a concrete Environment. `id` -- the environment id. `type` -- the environment type: development, test or production. `icon` -- the environment icon.
    - `id` string
    - `type` 'production' | 'test' | 'development', required
    - `icon` string, nullable
    - `extension` EaasExtensionReference, required
      - `id` string, required
      - `name` string
      - `owner` EaasAccountReference
        - `id` string
        - `name` string, required
        - `icon` string, nullable
        - `role` 'vendor' | 'distributor' | 'reseller'
      - `icon` string, binary, nullable
      - `extension_id` string
    - `ui_modules` string
    - `hostname` string, required
    - `domain` string, required
    - `git` EaasGitInfo — Git Info. Is used to represent git repository information `auth` -- object containing `username` and `password` to git repository if required. `url` -- repository URL. `tag` -- tag to be used. Connect will checkout the code according to this tag. `commit` -- commit to be used. Connect will checkout the code according to this commit.
      - `url` string, uri, required
      - `tag` string, required
      - `commit` string, required
      - `auth` EaasGitCredentialsModel — Git Credentials. Is used to represent input object to request git tags. You need to provide `username` and `password` to your git repository as input data.
        - `username` string, nullable
        - `password` string, nullable
    - `runtime` string, required
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `last_triggered` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `next_trigger` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
  - `status` 'enabled' | 'disabled' | 'obsolete' | 'pending'
  - `reason` string, nullable

## Response `200`

- EaasSchedule — Schedule. Is used to create a concrete Schedule of the Environment. `method` -- method that is going to be used. It must be inside the Environment.schedulables attribute. `name` -- a representative name of the schedule. `description` -- the description of what is going to do this schedule. `parameter` -- method parameters in a dict format. `trigger` -- the schedule type specific data. It contains a dict that will have the required data. `events` -- the schedule date events for created, update, deleted and last_triggered. `environment` -- the related environment id and type.
  - `id` string
  - `name` string, required
  - `description` string, nullable
  - `method` string, required
  - `parameter` object, nullable
  - `trigger` EaasTrigger, required — Schedule trigger type. Is used to specify a concrete Schedule type. `type` -- the schedule type: onetime, recurring or advanced. `start` -- the start date for the schedule. `end` -- the end date for the schedule (optional). `unit` -- recurring type: hour, day, week or month (for recurring type only). `amount` -- recurring amount (for recurring type only). `cron_expression` -- cron expression (for advanced type only). `date` -- one time date (for onetime type only).
    - `type` 'onetime' | 'recurring' | 'advanced', required
    - `start` string, date-time, nullable
    - `end` string, date-time, nullable
    - `unit` 'hours' | 'days' | 'weeks' | 'months', nullable
    - `amount` integer, nullable
    - `cron_expression` string, nullable
    - `date` string, date-time
  - `environment` EaasEnvironmentReference — Environment. Is used to specify a concrete Environment. `id` -- the environment id. `type` -- the environment type: development, test or production. `icon` -- the environment icon.
    - `id` string
    - `type` 'production' | 'test' | 'development', required
    - `icon` string, nullable
    - `extension` EaasExtensionReference, required
      - `id` string, required
      - `name` string
      - `owner` EaasAccountReference
        - `id` string
        - `name` string, required
        - `icon` string, nullable
        - `role` 'vendor' | 'distributor' | 'reseller'
      - `icon` string, binary, nullable
      - `extension_id` string
    - `ui_modules` string
    - `hostname` string, required
    - `domain` string, required
    - `git` EaasGitInfo — Git Info. Is used to represent git repository information `auth` -- object containing `username` and `password` to git repository if required. `url` -- repository URL. `tag` -- tag to be used. Connect will checkout the code according to this tag. `commit` -- commit to be used. Connect will checkout the code according to this commit.
      - `url` string, uri, required
      - `tag` string, required
      - `commit` string, required
      - `auth` EaasGitCredentialsModel — Git Credentials. Is used to represent input object to request git tags. You need to provide `username` and `password` to your git repository as input data.
        - `username` string, nullable
        - `password` string, nullable
    - `runtime` string, required
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `last_triggered` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `next_trigger` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
  - `status` 'enabled' | 'disabled' | 'obsolete' | 'pending'
  - `reason` string, nullable

## Other responses

- `400`

---

[API](https://skmtc.dev/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.dev/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/revisions/0421d2a97c52/schema)
