Regenerate Video Moments Api
Changed onCompute a video's Moments again: the Regenerate button, and Retry after a failure.
Answers 202 with the same body as GET /v2/videos/{video_id}/moments when this request queued a computation, and 200 with the current body when nothing was started. regenerate_credits on the GET says what a regeneration costs; it is charged once per out-of-date result, never for a Retry, and never for a video whose Moments was bought. Repeating a request with the same Idempotency-Key within a day returns the first answer's status code and never starts or charges again.
Requires the same access as the video's other charged analyses (the owner or a member allowed to write) and, for a delegated app, the media.write scope.
Request
- Base URLhttps://api.imentiv.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- or OAuth 2Authorization codehttps://api.imentiv.ai/oauth/authorizeToken URLhttps://api.imentiv.ai/oauth/tokenScopesmedia.write
Path parameters
The unique video ID of the video to regenerate moments for
Headers
One per click; resend the same key only to retry the same request.
Response
Nothing was started: the moments are current, a computation is already queued or running, a retry is not allowed yet, or the video has no Moments.
Changes
- info
endpoint added
- info