PeerTube · Example Payload

Replacevideochapters

**PeerTube >= 6.0**

Video Chapters

Replacevideochapters 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": "replaceVideoChapters",
  "method": "PUT",
  "path": "/api/v1/videos/{id}/chapters",
  "summary": "Replace video chapters",
  "description": "**PeerTube >= 6.0**",
  "tags": [
    "Video Chapters"
  ],
  "parameters": [
    {
      "name": null,
      "in": null,
      "required": false,
      "description": "",
      "schema": {}
    }
  ],
  "requestBody": {
    "contentType": "application/json",
    "schema": {
      "type": "object",
      "properties": {
        "chapters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "timecode": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "example": {}
  },
  "responses": {
    "204": {
      "description": "successful operation",
      "examples": {}
    },
    "404": {
      "description": "video not found",
      "examples": {}
    }
  }
}