{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Passwords API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Passwords", "type": "folder" }, "items": [ { "info": { "name": "List video passwords", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/passwords", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "start", "value": "", "type": "query", "description": "Offset used to paginate results" }, { "name": "count", "value": "", "type": "query", "description": "Number of items to return" }, { "name": "sort", "value": "", "type": "query", "description": "Sort column" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 6.0**" }, { "info": { "name": "Add a video password", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/:id/passwords", "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.0**" }, { "info": { "name": "Update video passwords", "type": "http" }, "http": { "method": "PUT", "url": "https://peertube2.cpy.re/api/v1/videos/:id/passwords", "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 >= 6.0**" }, { "info": { "name": "Delete a video password", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/videos/:id/passwords/:passwordId", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "passwordId", "value": "", "type": "path", "description": "The video password id" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 6.0**" } ] } ], "bundled": true }