Method: references.insert
Stay organized with collections
Save and categorize content based on your preferences.
Creates a reference in one of the following ways:
- If your request is uploading a reference file, YouTube creates the reference from the provided content. You can provide either a video/audio file or a pre-generated fingerprint. If you are providing a pre-generated fingerprint, set the
reference
resource's fpDirect property to true
in the request body. In this flow, you can use either the multipart or resumable upload flows to provide the reference content. - If you want to create a reference using a claimed video as the reference content, use the
claimId
parameter to identify the claim.
HTTP request
- Upload URI, for media upload requests:
POST https://youtubepartner.googleapis.com/upload/youtube/partner/v1/references
- Metadata URI, for metadata-only requests:
POST https://youtubepartner.googleapis.com/youtube/partner/v1/references
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters |
claimId |
string
The claimId parameter specifies the YouTube claim ID of an existing claim from which a reference should be created. (The claimed video is used as the reference content.)
|
onBehalfOfContentOwner |
string
The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.
|
Request body
The request body contains an instance of Reference
.
Response body
If successful, the response body contains an instance of Reference
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-23 UTC."],[[["References can be created by uploading a video/audio file or a pre-generated fingerprint, or by using a claimed video's content via the `claimId` parameter."],["HTTP requests for uploading media content use the `POST https://youtubepartner.googleapis.com/upload/youtube/partner/v1/references` URI, while metadata-only requests use `POST https://youtubepartner.googleapis.com/youtube/partner/v1/references`."],["The `onBehalfOfContentOwner` query parameter specifies the content owner the user is acting on behalf of, supporting users associated with multiple content owners."],["The request body is an instance of the `Reference`, and if the request is successful, the response body will also contain an instance of `Reference`."],["The `https://www.googleapis.com/auth/youtubepartner` OAuth scope is required for authorization."]]],[]]