Docs

Revert ebook edits

Discards creator edits and restores the generated ebook document. Requires the `videos:write` scope.

Discards creator edits and restores the generated ebook document. Requires the videos:write scope.

POST
/v1/videos/{id}/ebook/revert

Authorization

BearerAuth
AuthorizationBearer <token>

Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.

In: header

Path Parameters

id*string

Video UUID.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://api.moviie.ai/v1/videos/497f6eca-6276-4993-bfeb-53cbbbba6f08/ebook/revert"
{
  "status": "ready",
  "isStale": true,
  "hasEdit": true,
  "document": {
    "version": 1,
    "title": "Getting started with video hosting",
    "intro": "string",
    "chapters": [
      {
        "title": "Getting started",
        "body": "string",
        "startSeconds": 0
      }
    ],
    "recap": "string"
  },
  "costCredits": "string",
  "generatedAt": "string",
  "displayEnabled": true
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}