Youtube · Schema

GroupItemCreateRequest

Request body for adding an item to a group

GoogleMediaSocialStreamingVideoVideos

Properties

Name Type Description
groupId string ID of the group to add the item to
resource object
View JSON Schema on GitHub

JSON Schema

youtube-groupitemcreaterequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GroupItemCreateRequest",
  "title": "GroupItemCreateRequest",
  "type": "object",
  "description": "Request body for adding an item to a group",
  "required": [
    "groupId",
    "resource"
  ],
  "properties": {
    "groupId": {
      "type": "string",
      "description": "ID of the group to add the item to",
      "example": "ABCdef123456"
    },
    "resource": {
      "type": "object",
      "required": [
        "kind",
        "id"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "description": "Type of resource to add",
          "enum": [
            "youtube#channel",
            "youtube#video"
          ],
          "example": "youtube#video"
        },
        "id": {
          "type": "string",
          "description": "YouTube ID of the channel or video",
          "example": "dQw4w9WgXcQ"
        }
      }
    }
  }
}