Docs

Save the complete cut review

Atomically saves the chosen cuts, transcript ranges, one vertical framing per passage, caption style and caption height. The whole update is rejected if any decision is invalid or the source transcript changed.

Atomically saves the chosen cuts, transcript ranges, one vertical framing per passage, caption style and caption height. The whole update is rejected if any decision is invalid or the source transcript changed.

PATCH
/v1/videos/{id}/reels/{jobId}/selection

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 identifier.

Formatuuid
jobId*string

Cut analysis identifier.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.moviie.ai/v1/videos/497f6eca-6276-4993-bfeb-53cbbbba6f08/reels/497f6eca-6276-4993-bfeb-53cbbbba6f08/selection" \  -H "Content-Type: application/json" \  -d '{    "version": 1,    "captionStyle": "word-by-word",    "captionY": 12,    "picked": [      "string"    ],    "cortes": {      "property1": {        "state": "aberto",        "edited": true,        "trechos": [          {            "fromWord": 0,            "toWord": 0,            "crop": {              "x": 0,              "y": 0,              "w": 1,              "h": 1            }          }        ]      },      "property2": {        "state": "aberto",        "edited": true,        "trechos": [          {            "fromWord": 0,            "toWord": 0,            "crop": {              "x": 0,              "y": 0,              "w": 1,              "h": 1            }          }        ]      }    }  }'
{
  "selection": {
    "version": 1,
    "captionStyle": "word-by-word",
    "captionY": 12,
    "picked": [
      "string"
    ],
    "cortes": {
      "property1": {
        "state": "aberto",
        "edited": true,
        "trechos": [
          {
            "fromWord": 0,
            "toWord": 0,
            "crop": {
              "x": 0,
              "y": 0,
              "w": 1,
              "h": 1
            }
          }
        ]
      },
      "property2": {
        "state": "aberto",
        "edited": true,
        "trechos": [
          {
            "fromWord": 0,
            "toWord": 0,
            "crop": {
              "x": 0,
              "y": 0,
              "w": 1,
              "h": 1
            }
          }
        ]
      }
    }
  },
  "savedAt": "2019-08-24T14:15:22Z"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}