Method: policies.insert
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://youtubepartner.googleapis.com/youtube/partner/v1/policies
网址采用 gRPC 转码语法。
查询参数
参数 |
onBehalfOfContentOwner |
string
onBehalfOfContentOwner 参数用于标识用户代表的具体内容所有者。此参数适用于账号与多个内容所有者相关联的用户。
|
响应正文
如果成功,响应正文将包含一个新创建的 Policy
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/youtubepartner
如需了解详情,请参阅 OAuth 2.0 Overview。
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-21。"],[[["This page documents the process of creating a saved policy using a POST request to the specified URL."],["The request requires the `onBehalfOfContentOwner` query parameter to identify the content owner."],["The request body must include an instance of the `Policy` resource."],["A successful request returns a new `Policy` instance in the response body."],["The `https://www.googleapis.com/auth/youtubepartner` OAuth scope is required for authorization."]]],["A `POST` request is sent to `https://youtubepartner.googleapis.com/youtube/partner/v1/policies` to create a saved policy. The request URL uses gRPC Transcoding syntax. The `onBehalfOfContentOwner` query parameter specifies the content owner. The request body includes a `Policy` instance. A successful response returns a newly created `Policy` instance in the response body. This action requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"]]