{
  "updatedAt": "2025-02-27T02:42:46.000Z",
  "createdAt": "2025-02-24T03:14:58.774Z",
  "id": "uBrrhRVvZT0d9DFn",
  "name": "Youtube upload nang cao",
  "description": null,
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://www.googleapis.com/upload/youtube/v3/captions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "youTubeOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "part",
              "value": "snippet"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "snippet",
              "value": "={{\n{     \"videoId\": \"YOUR_VIDEO_ID\",     \"language\": \"vi\",     \"name\": \"Vietnamese subtitle\",     \"isDraft\": false   }\n}}"
            },
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "data"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        200,
        -180
      ],
      "id": "3e79cc0a-44e3-49d0-8e70-02941d37b852",
      "name": "Up phụ đề",
      "credentials": {
        "youTubeOAuth2Api": {
          "id": "e1jiCdSuxe1ceu2C",
          "name": "YouTube DangNgocBinh"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://www.googleapis.com/youtube/v3/thumbnails/set",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "youTubeOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "videoId",
              "value": "YOUR_VIDEO_ID"
            }
          ]
        },
        "sendBody": true,
        "contentType": "binaryData",
        "inputDataFieldName": "data",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        420,
        -180
      ],
      "id": "576ad43c-4579-4fde-9ecb-7b9a9b0c6067",
      "name": "cập nhật thumnail youtube",
      "credentials": {
        "youTubeOAuth2Api": {
          "id": "e1jiCdSuxe1ceu2C",
          "name": "YouTube DangNgocBinh"
        }
      }
    },
    {
      "parameters": {
        "method": "PUT",
        "url": "https://www.googleapis.com/youtube/v3/videos",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "youTubeOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "part",
              "value": "contentDetails"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"id\": \"YOUR_VIDEO_ID\",\n  \"contentDetails\": {\n    \"regionRestriction\": {\n      \"allowed\": [\n        \"VN\",\n        \"US\",\n        \"JP\"\n      ],\n      \"blocked\": [\n        \"CN\",\n        \"KR\"\n      ]\n    }\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        640,
        -180
      ],
      "id": "f2367bde-a660-4b4c-a45d-0131d36f81e5",
      "name": "Gioi han quoc gia",
      "credentials": {
        "youTubeOAuth2Api": {
          "id": "e1jiCdSuxe1ceu2C",
          "name": "YouTube DangNgocBinh"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "1efb9859-b0c2-4a78-97b2-5970835a78e0",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "resource": "video",
        "operation": "upload",
        "options": {}
      },
      "type": "n8n-nodes-base.youTube",
      "typeVersion": 1,
      "position": [
        220,
        0
      ],
      "id": "63d21014-1c58-4100-a63f-5c3d5c7d2d61",
      "name": "YouTube",
      "credentials": {
        "youTubeOAuth2Api": {
          "id": "e1jiCdSuxe1ceu2C",
          "name": "YouTube DangNgocBinh"
        }
      }
    }
  ],
  "connections": {
    "Up phụ đề": {
      "main": [
        []
      ]
    },
    "cập nhật thumnail youtube": {
      "main": [
        []
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "YouTube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": null,
  "pinData": {},
  "versionId": "1c1df19d-0416-4497-98a0-debcae970f01",
  "activeVersionId": null,
  "versionCounter": 1,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2025-02-24T03:14:58.790Z",
      "createdAt": "2025-02-24T03:14:58.790Z",
      "role": "workflow:owner",
      "workflowId": "uBrrhRVvZT0d9DFn",
      "projectId": "Nlp7kXCVcAfb0cmG",
      "project": {
        "updatedAt": "2024-07-25T03:06:26.102Z",
        "createdAt": "2024-07-25T03:06:26.102Z",
        "id": "Nlp7kXCVcAfb0cmG",
        "name": "Bình Đặng <dangngocbinh.dnb@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "92f1ca82-c19e-4a7d-8458-93b65f67f4c7"
      }
    }
  ],
  "tags": [
    {
      "updatedAt": "2024-10-04T03:03:40.628Z",
      "createdAt": "2024-10-04T03:03:40.628Z",
      "id": "MW10UcI4NI01thiG",
      "name": "share"
    }
  ],
  "activeVersion": null
}