{
  "opencollection": "1.0.0",
  "info": {
    "name": "PeerTube Abuses Player Settings API",
    "version": "8.1.0"
  },
  "items": [
    {
      "info": {
        "name": "Player Settings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get video player settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://peertube2.cpy.re/api/v1/player-settings/videos/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The object id, uuid or short uuid"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Return raw settings without merging channel defaults"
              }
            ]
          },
          "docs": "Get player settings for a specific video. Returns video-specific settings merged with channel player settings."
        },
        {
          "info": {
            "name": "Update video player settings",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://peertube2.cpy.re/api/v1/player-settings/videos/:id",
            "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": "Update player settings for a specific video"
        },
        {
          "info": {
            "name": "Get channel player settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://peertube2.cpy.re/api/v1/player-settings/video-channels/:channelHandle",
            "params": [
              {
                "name": "channelHandle",
                "value": "",
                "type": "path",
                "description": "The video channel handle"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Return raw settings without applying instance defaults"
              }
            ]
          },
          "docs": "Get player settings for a video channel."
        },
        {
          "info": {
            "name": "Update channel player settings",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://peertube2.cpy.re/api/v1/player-settings/video-channels/:channelHandle",
            "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": "Update default player settings for a video channel."
        }
      ]
    }
  ],
  "bundled": true
}