{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-channel-create-schema.json",
  "title": "ChannelCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-channels-api-openapi.yml#/components/schemas/ChannelCreate",
  "type": "object",
  "required": [
    "propertyId",
    "name"
  ],
  "properties": {
    "propertyId": {
      "type": "string",
      "description": "ID of the property this channel belongs to"
    },
    "name": {
      "type": "string",
      "description": "Channel name (e.g., \"Airbnb\", \"Booking.com\")"
    },
    "type": {
      "type": "string",
      "enum": [
        "ical_import",
        "ical_export",
        "api"
      ],
      "default": "ical_import"
    },
    "feedUrl": {
      "type": "string",
      "format": "uri",
      "description": "iCal feed URL for import"
    },
    "status": {
      "$ref": "#/$defs/ChannelStatus"
    }
  },
  "$defs": {
    "ChannelStatus": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "error"
      ]
    }
  }
}