---
title: "Create a schedule."
method: POST
path: "/rateplan/v0-nsfw/schedules"
tags: ["Schedule"]
---

# Create a schedule.

`POST /rateplan/v0-nsfw/schedules`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/rateplan/v0-nsfw/schedules`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `settings.manage`, `setup.manage`, `admin`

Create a reusable schedule.
Rejected when the range is entirely in the past (property-local today).<br>You must have at least one of these scopes: 'settings.manage, setup.manage'.<br>For fine-grained clients, you must have this permission: 'core.schedules.create'.

## Headers

- `Idempotency-Key` string

## Request body

- CreateScheduleModel
  - `code` string, required: The code for the schedule, used to assemble its id
  - `name` string, required: The name for the schedule
  - `propertyId` string, required: The id of the property where the schedule will be created
  - `validFrom` string, date, required: The first arrival date the schedule applies to, inclusive, interpreted in the property time zone
  - `validTo` string, date, required: The last arrival date the schedule applies to, inclusive, interpreted in the property time zone

## Response `201`

Schedule successfully created.

- ScheduleCreatedModel
  - `id` string, required: The schedule ID

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `415`: Unsupported media type.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api-not-safe-for-work/revisions/97dec9512a17?raw)
