{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Ownership Change API", "version": "8.1.0" }, "items": [ { "info": { "name": "Ownership Change", "type": "folder" }, "items": [ { "info": { "name": "List video ownership changes", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/ownership", "params": [ { "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" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List ownership change requests received by the authenticated user and requests sent by a channel managed by the authenticated user" }, { "info": { "name": "Accept ownership change request", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/ownership/:id/accept", "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": "Accept ownership change request" }, { "info": { "name": "Refuse ownership change request", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/ownership/:id/refuse", "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": "Refuse ownership change request" }, { "info": { "name": "Delete ownership change request", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/videos/ownership/:id", "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": "Delete an ownership change request. Only users who can manage the video can delete the request." }, { "info": { "name": "List ownership change requests for a video", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:videoIdOrUUID/ownership", "params": [ { "name": "videoIdOrUUID", "value": "", "type": "path", "description": "Video id or UUID" }, { "name": "state", "value": "", "type": "query", "description": "Filter by ownership change state" }, { "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" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List all ownership change requests for a specific video. The authenticated user must be able to manage the video." }, { "info": { "name": "Request ownership change", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/videos/:videoIdOrUUID/give-ownership", "params": [ { "name": "videoIdOrUUID", "value": "", "type": "path", "description": "Video id or UUID" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Request ownership change" }, { "info": { "name": "List channel ownership changes", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/video-channels/ownership", "params": [ { "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" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List ownership change requests received by the authenticated user and requests sent by channels managed by the authenticated user" }, { "info": { "name": "Accept channel ownership change request", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/video-channels/ownership/:id/accept", "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": "Accept channel ownership change request" }, { "info": { "name": "Refuse channel ownership change request", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/video-channels/ownership/:id/refuse", "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": "Refuse channel ownership change request" }, { "info": { "name": "Delete channel ownership change request", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/video-channels/ownership/:id", "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": "Delete a channel ownership change request. Only channel owners can delete the request." }, { "info": { "name": "List ownership change requests for a channel", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/video-channels/:channelHandle/ownership", "params": [ { "name": "channelHandle", "value": "", "type": "path", "description": "The video channel handle" }, { "name": "state", "value": "", "type": "query", "description": "Filter by ownership change state" }, { "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" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List all ownership change requests for a specific channel. The authenticated user must be able to manage the channel." }, { "info": { "name": "Request channel ownership change", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/video-channels/:channelHandle/give-ownership", "params": [ { "name": "channelHandle", "value": "", "type": "path", "description": "The video channel handle" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Request channel ownership change" } ] } ], "bundled": true }