Set video privacy
Change who can watch a video and where it can be embedded.
PUT https://cotlet.dev/api/v1/vimeo/videos/{video_id}/privacy
write Confirm
Sets the viewing privacy and optionally the embed rule. Privacy is public, unlisted, password, embed_only or private; unlisted, password and embed_only need a paid plan. Embed is anywhere, nowhere or domains. A private video cannot play when embedded elsewhere. A public video appears in search engines and on your profile. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| video_id string required | string | Video ID from search_videos, the number in vimeo.com/{id}. |
| privacy enum required | enum | public, unlisted, password, embed_only or private. |
| password string | string | Required when privacy is password. |
| embed enum | enum | anywhere, nowhere or domains. |
| embed_domains string[] | string[] | Allowed domains when embed is domains. Up to 50. |
Request
curl -X PUT https://cotlet.dev/api/v1/vimeo/videos/video_8c41d2/privacy \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"privacy":"public"}' result = client.call("vimeo", "set_video_privacy", {"video_id":"video_8c41d2","privacy":"public"}) const result = await cotlet.call('vimeo', 'set_video_privacy', {"video_id":"video_8c41d2","privacy":"public"}); cotlet call vimeo set_video_privacy --data '{"video_id":"video_8c41d2","privacy":"public"}' Example response
{
"video_id": "912345611",
"privacy": "unlisted",
"embed": "anywhere",
"updated": true
}