PeerTube · Example Payload

Addvideocaption

Video Captions

Addvideocaption 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": "addVideoCaption",
  "method": "PUT",
  "path": "/api/v1/videos/{id}/captions/{captionLanguage}",
  "summary": "Add or replace a video caption",
  "description": "",
  "tags": [
    "Video Captions"
  ],
  "parameters": [
    {
      "name": null,
      "in": null,
      "required": false,
      "description": "",
      "schema": {}
    },
    {
      "name": null,
      "in": null,
      "required": false,
      "description": "",
      "schema": {}
    }
  ],
  "requestBody": {
    "contentType": "multipart/form-data",
    "schema": {
      "type": "object",
      "properties": {
        "captionfile": {
          "description": "The file to upload.",
          "type": "string",
          "format": "binary"
        }
      }
    },
    "example": {}
  },
  "responses": {
    "204": {
      "description": "successful operation",
      "examples": {}
    },
    "404": {
      "description": "video or language not found",
      "examples": {}
    }
  }
}