{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Blocks API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Blocks", "type": "folder" }, "items": [ { "info": { "name": "Block a video", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/:id/blacklist", "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": "Block a video" }, { "info": { "name": "Unblock a video by its id", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/videos/:id/blacklist", "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": "Unblock a video by its id" }, { "info": { "name": "List video blocks", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/blacklist", "params": [ { "name": "type", "value": "", "type": "query", "description": "list only blocks that match this type:\n- `1`: manual block\n- `2`: automatic block that needs review\n" }, { "name": "search", "value": "", "type": "query", "description": "plain search that will match with video titles, and more" }, { "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 blocklists by criteria" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List video blocks" } ] } ], "bundled": true }