{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-invideo-branding-schema.json",
  "title": "InvideoBranding",
  "description": "Describes an invideo branding.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-watermarks-api-openapi.yml#/components/schemas/InvideoBranding",
  "properties": {
    "imageUrl": {
      "type": "string",
      "description": "The url of the uploaded image. Only used in apiary to api communication."
    },
    "targetChannelId": {
      "description": "The channel to which this branding links. If not present it defaults to the current channel.",
      "type": "string"
    },
    "position": {
      "$ref": "#/$defs/InvideoPosition",
      "description": "The spatial position within the video where the branding watermark will be displayed."
    },
    "timing": {
      "$ref": "#/$defs/InvideoTiming",
      "description": "The temporal position within the video where watermark will be displayed."
    },
    "imageBytes": {
      "type": "string",
      "format": "byte",
      "description": "The bytes the uploaded image. Only used in api to youtube communication."
    }
  },
  "type": "object",
  "$defs": {
    "InvideoPosition": {
      "description": "Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "corner"
          ],
          "description": "Defines the position type."
        },
        "cornerPosition": {
          "enum": [
            "topLeft",
            "topRight",
            "bottomLeft",
            "bottomRight"
          ],
          "description": "Describes in which corner of the video the visual widget will appear.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "InvideoTiming": {
      "description": "Describes a temporal position of a visual widget inside a video.",
      "type": "object",
      "properties": {
        "durationMs": {
          "format": "uint64",
          "type": "string",
          "description": "Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default."
        },
        "type": {
          "description": "Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.",
          "type": "string",
          "enum": [
            "offsetFromStart",
            "offsetFromEnd"
          ]
        },
        "offsetMs": {
          "description": "Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.",
          "format": "uint64",
          "type": "string"
        }
      }
    }
  }
}