Page Summary
-
This page documents how to update a saved policy using the YouTube Partner API.
-
The HTTP request to update a policy is a PUT request to a URL that includes the unique
policyIdin the path. -
An optional query parameter,
onBehalfOfContentOwner, allows users associated with multiple content owners to specify which content owner they are acting on behalf of. -
Both the request and response bodies are instances of the
Policyresource, which defines the policy being updated or returned. -
Updating a policy requires the
https://www.googleapis.com/auth/youtubepartnerOAuth scope for authorization.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates the specified saved policy.
HTTP request
PUT https://youtubepartner.googleapis.com/youtube/partner/v1/policies/{policyId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
policyId
|
The |
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner
|
The |
Request body
The request body contains an instance of Policy
.
Response body
If successful, the response body contains an instance of Policy
.
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview .

