Update video chapters

PUT/media/v1/projects/{projectId}/videos/{videoId}/chapters

Replaces the chapters of a video.

Authorization<token>

In: header

Path Parameters

projectId*string

Project ID

videoId*string

Video ID

Request Body

required
application/json
{
  "$ref": "#/components/schemas/internal_media.updateChaptersBody",
  "$ref-value": {
    "properties": {
      "chapters": {
        "items": {
          "$ref": "#/components/schemas/internal_media.chapterBody",
          "$ref-value": {
            "properties": {
              "start_time_sec": {
                "type": "number"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "title"
            ],
            "type": "object"
          }
        },
        "type": "array"
      }
    },
    "type": "object"
  }
}

Response Body

200application/json

OK

type: unknown

{
  "$ref": "#/components/schemas/videosv1.VideoChapters",
  "$ref-value": {
    "properties": {
      "chapters": {
        "items": {
          "$ref": "#/components/schemas/videosv1.Chapter",
          "$ref-value": {
            "properties": {
              "start_time_sec": {
                "type": "number"
              },
              "title": {
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "array"
      },
      "video_id": {
        "type": "string"
      }
    },
    "type": "object"
  }
}
curl -X PUT "https://api.rixl.com/media/v1/projects/string/videos/string/chapters" \
  -H "Content-Type: application/json" \
  -d '{}'

OK

application/json

{
  "$ref": "#/components/schemas/videosv1.VideoChapters",
  "$ref-value": {
    "properties": {
      "chapters": {
        "items": {
          "$ref": "#/components/schemas/videosv1.Chapter",
          "$ref-value": {
            "properties": {
              "start_time_sec": {
                "type": "number"
              },
              "title": {
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "array"
      },
      "video_id": {
        "type": "string"
      }
    },
    "type": "object"
  }
}