{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Embed Privacy API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Embed Privacy", "type": "folder" }, "items": [ { "info": { "name": "Get video embed privacy", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/embed-privacy", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 8.1**" }, { "info": { "name": "Update video embed privacy", "type": "http" }, "http": { "method": "PUT", "url": "https://peertube2.cpy.re/api/v1/videos/:id/embed-privacy", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 8.1**" }, { "info": { "name": "Check if embed is allowed", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/embed-privacy/allowed", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "domain", "value": "", "type": "query", "description": "The domain to check if embed is allowed" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 8.1** Check if video embed is allowed on a specific domain according to the video embed privacy settings" } ] } ], "bundled": true }