{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upstream-so/json-schema/upstream-so-post-streams-request-schema.json",
  "title": "PostStreamsRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/upstream-so-openapi-generated.yml#/components/schemas/PostStreamsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "key": {
      "type": "string"
    },
    "schedule": {
      "type": "object",
      "description": "Schedule configuration for the stream"
    },
    "schedule.mode": {
      "type": "string"
    },
    "schedule.continuous_start_type": {
      "type": "string"
    },
    "schedule.continuous_stop_type": {
      "type": "string"
    },
    "schedule.stream_duration_hours": {
      "type": "integer"
    },
    "schedule.stream_duration_minutes": {
      "type": "integer"
    },
    "schedule.break_duration_minutes": {
      "type": "integer"
    },
    "schedule.preserve_state": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "platform",
    "type",
    "key",
    "schedule",
    "schedule.mode",
    "schedule.continuous_start_type",
    "schedule.continuous_stop_type"
  ]
}