{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-scheduled-charging-create-weekly-schedule-response-schema.json",
  "title": "Scheduled_charging_CreateWeeklyScheduleResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-weekly-schedule-api-openapi.yml#/components/schemas/Scheduled_charging_CreateWeeklyScheduleResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "enabled",
    "timezone",
    "periods"
  ],
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Whether the schedule is enabled. Enabled schedules are automatically installed to the charger."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone identifier of timezone to use for the schedule."
    },
    "periods": {
      "type": "array",
      "description": "Collection of time periods during which charging is permitted.",
      "items": {
        "$ref": "#/$defs/Scheduled_charging_WeeklySchedulePeriod2"
      }
    }
  },
  "$defs": {
    "Scheduled_charging_DayOfWeek": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ],
      "enum": [
        "sunday",
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday"
      ]
    },
    "Scheduled_charging_WeeklySchedulePeriod2": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "startDay",
        "startTime",
        "stopDay",
        "stopTime",
        "maximumAmps"
      ],
      "properties": {
        "startDay": {
          "description": "The day of week on which the schedule period begins.",
          "oneOf": [
            {
              "$ref": "#/$defs/Scheduled_charging_DayOfWeek"
            }
          ]
        },
        "startTime": {
          "type": "string",
          "description": "The time of day on which the schedule period begins.",
          "format": "time"
        },
        "stopDay": {
          "description": "The day of week on which the schedule period ends.",
          "oneOf": [
            {
              "$ref": "#/$defs/Scheduled_charging_DayOfWeek"
            }
          ]
        },
        "stopTime": {
          "type": "string",
          "description": "The time of day on which the schedule period ends.",
          "format": "time"
        },
        "maximumAmps": {
          "type": "integer",
          "description": "The maximum electrical current in amperes permitted by the schedule during this charging period.",
          "format": "int32"
        }
      }
    }
  }
}