{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-live-stream-create-payload-schema.json",
  "title": "LiveStreamCreatePayload",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-video-openapi.yml#/components/schemas/LiveStreamCreatePayload",
  "type": "object",
  "required": [
    "input"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "input": {
      "$ref": "#/$defs/LiveStreamInputCreatePayload"
    },
    "idle_timeout_sec": {
      "type": [
        "integer",
        "null"
      ]
    },
    "max_runtime_sec": {
      "type": [
        "integer",
        "null"
      ]
    },
    "embedded_captions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/LiveStreamEmbeddedCaption"
      }
    }
  },
  "$defs": {
    "LiveStreamEmbeddedCaption": {
      "type": "object",
      "required": [
        "caption_channel",
        "language_code",
        "language_description"
      ],
      "properties": {
        "caption_channel": {
          "type": "integer"
        },
        "language_code": {
          "type": "string",
          "description": "ISO 639-2 language code"
        },
        "language_description": {
          "type": "string"
        }
      }
    },
    "LiveStreamInputCreatePayload": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        }
      }
    }
  }
}