REST Resource: policies
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Policy
A
policy
resource specifies rules that define a particular usage or match policy that a partner can associate with an asset or claim.
JSON representation
|
{
"kind"
:
string
,
"name"
:
string
,
"description"
:
string
,
"timeUpdated"
:
string
,
"rules"
:
[
{
object (
PolicyRule
)
}
]
,
"id"
:
string
}
|
Fields
|
kind
|
string
Identifies this as a policy. Value: "
youtubePartner#policy
"
|
name
|
string
The policy's name.
|
description
|
string
The policy's description.
|
timeUpdated
|
string
The time the policy was updated.
|
rules[]
|
object (
PolicyRule
)
A list of rules that specify the action that YouTube should take and may optionally specify the conditions under which that action is enforced.
|
id
|
string
A value that YouTube assigns and uses to uniquely identify the policy.
|
Methods
|
|
Retrieves the specified saved policy.
|
|
Creates a saved policy.
|
|
Retrieves a list of the content owner's saved policies.
|
|
Patches the specified saved policy.
|
|
Updates the specified saved policy.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]