{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Imports API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Imports", "type": "folder" }, "items": [ { "info": { "name": "Import a video", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/imports", "body": { "type": "multipart-form", "data": [] }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Import a torrent or magnetURI or HTTP resource (if enabled by the instance administrator)" }, { "info": { "name": "Cancel video import", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/imports/:id/cancel", "params": [ { "name": "id", "value": "", "type": "path", "description": "Entity id" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Cancel a pending video import" }, { "info": { "name": "Retry video import", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/imports/:id/retry", "params": [ { "name": "id", "value": "", "type": "path", "description": "Entity id" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "**PeerTube >= 8.0** Retry a pending video import" }, { "info": { "name": "Delete video import", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/videos/imports/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Entity id" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete ended video import" } ] } ], "bundled": true }