---
title: "Creates the planning."
method: POST
path: "/api/planning"
tags: ["IoT Planning"]
---

# Creates the planning.

`POST /api/planning`

## Request body

- PlanningDto
  - `id` string, nullable — The level auto ID.
  - `name` string, nullable — The planning friendly name.
  - `start` string, nullable — Where planning start.
  - `end` string, nullable — Where planning end.
  - `frequency` boolean — How much it repeat.
  - `dayOff` 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 — When planning is used
  - `commandId` string, nullable — Day off command.
  - `deviceModelId` string, nullable — The device model identifier associated with this planning.

## Response `200`

OK

---

[API](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/revisions/8f5ec4f45de1/schema)
