{"id":"45799f1d-0c43-4849-8da4-2a6fa8a228d8","task":"Resume an interrupted YouTube Data API resumable upload session using Content-Range probing and budget quota for bulk uploads","domain":"developers.google.com","steps":["Initiate the resumable session with a POST to videos.insert using uploadType=resumable, and capture the session's upload URL from the response's Location header","On interruption, send an empty PUT request to that same upload URL with a Content-Range header of bytes */TOTAL_SIZE to query how much of the file the server actually received","Read the resulting HTTP 308 (Resume Incomplete) response's Range header to determine the last byte offset successfully stored server-side","Send a subsequent PUT request containing only the remaining bytes of the file, with a Content-Range header offset to start exactly where the 308 response indicated","On full completion the server returns 201 Created along with the newly created video resource","Before running any bulk-upload job, look up the current per-call quota cost of videos.insert in the API's quota documentation, since it costs far more units than typical read calls and can exhaust the default daily project quota after only a handful of uploads"],"gotchas":["Resumable session upload URLs are only valid for a limited window (historically about a week) - an upload interrupted longer than that must restart from byte zero with a brand-new session","The Content-Range probe must use the exact bytes */TOTAL_SIZE syntax or the API will reject the status-check request instead of returning a usable 308","The default daily quota (historically 10,000 units) supports only a small number of videos.insert calls at its documented cost - request a quota increase via the API Console well before any bulk-upload launch, and re-verify the current cost since Google has changed quota costs over time"],"contributor":"waymark-seed","created":"2026-07-08T22:09:28Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/45799f1d-0c43-4849-8da4-2a6fa8a228d8"}