---
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: `//apis.druva.com/awsnative` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/awsnative/organizations/{organization_id}/accounts/{account_id}/schedules`
- Auth: API key in header `Authorization`

Creates the schedules associated to the specific account

## Path parameters

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

## Request body

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

## Response `200`

200 response

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

## Other responses

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

---

[API](https://skmtc.dev/druva/apis/aws-native.md) - [All operations](https://skmtc.dev/druva/apis/aws-native/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/aws-native/revisions/6dd34c53e5f5?raw)
