PeerTube · Example Payload

Rundebugcommand

Run an internal debug command as an administrator.

Debug

Rundebugcommand is an example object payload from PeerTube, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersrequestBodyresponses

Example Payload

Raw ↑
{
  "operationId": "runDebugCommand",
  "method": "POST",
  "path": "/api/v1/server/debug/run-command",
  "summary": "Run a debug command",
  "description": "Run an internal debug command as an administrator.",
  "tags": [
    "Debug"
  ],
  "parameters": [],
  "requestBody": {
    "contentType": "application/json",
    "schema": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "command": {
              "type": "string",
              "enum": [
                "remove-dandling-resumable-uploads",
                "remove-expired-user-exports",
                "process-video-stats-buffer",
                "process-video-viewers",
                "process-update-videos-scheduler",
                "process-video-channel-sync-latest",
                "process-remove-old-stats"
              ]
            }
          },
          "required": [
            "command"
          ]
        },
        {
          "type": "object",
          "properties": {
            "command": {
              "type": "string",
              "enum": [
                "test-emails"
              ]
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          },
          "required": [
            "command",
            "email"
          ]
        }
      ]
    },
    "example": {}
  },
  "responses": {
    "204": {
      "description": "successful operation",
      "examples": {}
    },
    "400": {
      "description": "invalid command or invalid email",
      "examples": {}
    }
  }
}