---
title: "Create the schedules"
method: POST
path: "/organizations/{organization_id}/accounts/{account_id}/schedules"
tags: ["Schedules"]
---

# Create the schedules

`POST /organizations/{organization_id}/accounts/{account_id}/schedules`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/accounts/{account_id}/schedules`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

Creates the schedules associated to the specific account

## Path parameters

- `organization_id` string, required
- `account_id` string, required

## Request body

- PostOrganizationsAccountsSchedulesRequest
  - `account_id` string
  - `group_tags` string[]
  - `groups` string[]
  - `hours_on` integer
  - `is_active` boolean
  - `match_all_tags_flag` boolean
  - `name` string
  - `organization_id` string
  - `percent_on` integer
  - `retainObjects` boolean
  - `schedule_json` object
    - `Friday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Monday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Saturday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Sunday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Thursday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Tuesday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
    - `Wednesday` object[]
      - `action_type` string
      - `end` integer
      - `minutes` integer
      - `start` integer
      - `stop` integer
  - `schedule_times` string[]
  - `servers` string[]
  - `tags` string[]
  - `timezone_location` string
  - `type` string

## Response `200`

200 response

- PostOrganizationsAccountsSchedulesResponse
  - `account_id` string
  - `created_at` string, date-time
  - `hours_on` integer
  - `id` integer
  - `is_active` boolean
  - `match_all_tags_flag` boolean
  - `name` string
  - `organization_id` string
  - `percent_on` integer
  - `schedule_json` string
  - `schedule_times` string[]
  - `servers` string[]
  - `tags` string[]
  - `timezone_location` string
  - `type` string
  - `updated_at` string, date-time

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
