---
updatedAt: 2025-10-17T12:03:44.000Z
agentTools:
  projectIndex: https://developer.druva.com/llms.txt
---

# Update A Schedule

Updates the specific schedule associated to an account

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "empty": {
        "properties": {},
        "type": "object"
      },
      "Error": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PutOrganizationsAccountsSchedulesByIdRequest": {
        "properties": {
          "account_id": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "deleted_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "highest_scale": {
            "type": "integer"
          },
          "hours_on": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "lowest_scale": {
            "type": "integer"
          },
          "match_all_tags_flag": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "organization_id": {
            "type": "string"
          },
          "percent_on": {
            "type": "integer"
          },
          "retainObjects": {
            "type": "boolean"
          },
          "schedule_json": {
            "properties": {
              "Friday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Monday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Saturday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Sunday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Thursday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Tuesday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "Wednesday": {
                "items": {
                  "properties": {
                    "action_type": {
                      "type": "string"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "stop": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "schedule_times": {
            "items": {
              "properties": {
                "action_type": {
                  "type": "string"
                },
                "day": {
                  "type": "string"
                },
                "dayNumber": {
                  "type": "integer"
                },
                "schedule_id": {
                  "type": "string"
                },
                "start_cron": {
                  "type": "string"
                },
                "start_hour": {
                  "type": "integer"
                },
                "start_mins": {
                  "type": "integer"
                },
                "stop_cron": {
                  "type": "string"
                },
                "stop_hour": {
                  "type": "integer"
                },
                "stop_mins": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "servers": {
            "items": {
              "properties": {
                "region": {
                  "type": "string"
                },
                "schedule_id": {
                  "type": "string"
                },
                "server_id": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "timezone_location": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PutOrganizationsAccountsSchedulesByIdResponse": {
        "type": "object"
      }
    },
    "securitySchemes": {
      "API_Authorizer": {
        "in": "header",
        "name": "Authorization",
        "type": "apiKey",
        "x-amazon-apigateway-authtype": "custom"
      },
      "api_key": {
        "in": "header",
        "name": "x-api-key",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "# Welcome to CloudRanger\n\nHere are some instructions on  how to use the API\n## Authentication and Authorization \n* Access to the API is controlled by your API key generated in the CloudRanger dashboard and token\n* The token is returned by calling the /authorize endpoint and supplying the x-api-key header\n* All other calls use the x-api-key header and the Authorzation header with Bearer followed by your token\n",
    "title": "CloudRanger",
    "version": "2022-12-07T16:38:31.962Z"
  },
  "openapi": "3.0.0",
  "paths": {
    "/organizations/{organization_id}/accounts/{account_id}/schedules/{schedule_id}": {
      "put": {
        "description": "Updates the specific schedule associated to an account",
        "parameters": [
          {
            "description": "Organization Id of the Organization that you are working with. This can be found by looking at the organization id in the URL of the dashboard. These are randomly generated alphanumber values",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Account id of the CloudRanger Account that you are managing inside an organization, these can be found by call the /organizations/{organization_id}/accounts endpoints which returns all accounts inside an Organization These are randomly generated alphanumber values",
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the schedule that you want to perform the request against. These can be found by the GET call /organizations/:organization_id/accounts/:account_id/schedules which returns all schedules inside an account ",
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutOrganizationsAccountsSchedulesByIdRequest"
              }
            }
          },
          "description": "Schedule Info",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PutOrganizationsAccountsSchedulesByIdResponse"
                }
              }
            },
            "description": "200 response"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/empty"
                }
              }
            },
            "description": "201 response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "401 response"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response"
          }
        },
        "security": [
          {
            "API_Authorizer": [],
            "api_key": []
          }
        ],
        "summary": "Update A Schedule",
        "tags": [
          "Schedules"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.cloudranger.com/202004"
    }
  ],
  "tags": [
    {
      "description": "Schedules in your CloudRanger Account",
      "name": "Schedules"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```