{
  "opencollection": "1.0.0",
  "info": {
    "name": "PeerTube Abuses My History API",
    "version": "8.1.0"
  },
  "items": [
    {
      "info": {
        "name": "My History",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List watched videos history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://peertube2.cpy.re/api/v1/users/me/history/videos",
            "params": [
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Offset used to paginate results"
              },
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Number of items to return"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Plain text search, applied to various parts of the model depending on endpoint"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "/api/v1/users/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List watched videos history"
        },
        {
          "info": {
            "name": "Delete history element",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://peertube2.cpy.re/api/v1/users/me/history/videos/:videoIdOrUUID",
            "params": [
              {
                "name": "videoIdOrUUID",
                "value": "",
                "type": "path",
                "description": "Video id or UUID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "/api/v1/users/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete history element"
        },
        {
          "info": {
            "name": "Clear video history",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://peertube2.cpy.re/api/v1/users/me/history/videos/remove",
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "beforeDate",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "/api/v1/users/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Clear video history"
        }
      ]
    }
  ],
  "bundled": true
}