Edit a Video’s Access Control
This endpoint is used to edit the Access Control permissions on a specific video.
PUT
/api/v2/videos/{videoId}/access-control
Path Parameters
| Parameter | Type | Validations |
|---|---|---|
| videoId | string, required | ID of video to edit. |
Request Body
application/json
{
"AccessControlEntities": [
{
"canEdit": true,
"id": "6bfb1ad1-71d3-4d9a-9915-d2087865529d",
"type": "Group"
},
{
"canEdit": true,
"id": "82d107af-2ec7-49c3-aea2-d35d0c35784h",
"type": "User"
},
{
"canEdit": true,
"id": "29ax1ad1-71d3-4d9a-9915-d2087865426s",
"type": "Channel"
}
]
}
| Parameter | Type | Validations |
|---|---|---|
| AccessControlEntities | array[uploadAccessControlEntity], required |
Provides explicit rights to a video to a User / Group / Channel. The array further specifies if they can edit the video through the use of the canEdit parameter. The array contains the following properties:
|
| AcessControl | string, optional | Type of access control to be updated; Private, Public, AllUsers, or Channels. Private is the default. If you specify Channel, at least one valid Channel must be present in Rev or the request will be rejected. |
| Password | string, optional | Only used if videos with a Public Access Control are set. You can set a password for these videos if desired. |