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.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 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-08-20 UTC."],[],["This document details the process for creating a relationship between two assets using the YouTube Partner API. A `POST` request is sent to `https://youtubepartner.googleapis.com/youtube/partner/v1/assetRelationships`. The `onBehalfOfContentOwner` query parameter specifies the content owner. The request body must contain `AssetRelationship` data, and a successful response returns a newly created `AssetRelationship`. This process requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"]]